[cfe-users] 3.5, C++14, and -g

Akim Demaille akim at lrde.epita.fr
Mon Nov 3 06:01:01 PST 2014


I'm on OS X, and have been eager to try C++14 for months.  However I am
stuck with the following for which I have found no relevant
information.  Is this being worked on?

Thanks in advance!

$ cat >foo2.cc <<EOF
template <typename T>
struct binary_expr {
    auto operator()(unsigned i){
        return 1;

int main(){
    binary_expr<double> b;
    return 0;
$ clang++-mp-3.5 -std=c++14 foo2.cc -g
error: debug information for auto is not yet supported
1 error generated.
$ clang++-mp-3.5 -std=c++14 foo2.cc
$ clang++-mp-3.5 --version
clang version 3.5.0 (branches/release_35 216817)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

It's the same with the Apple's version of clang.

$ clang++ --version
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

See also http://stackoverflow.com/questions/24617679/

More information about the cfe-users mailing list