Compiling with C++14 support

How do I specify C++14 support on the command-line using clang++ ? I tried '-std=c++14' but received:

error: invalid value 'c++14' in '-std=c++14'

I can see that -std=c++14 works on clang 3.5+. I will assume that clang 3.4 does not have c++14 support.

Try c++1y instead of c++14, the switch was renamed once C++14 was officially standardized.