<div dir="ltr">I'll cop to this, totally my mistake ( <a href="http://llvm.org/bugs/show_bug.cgi?id=16091">http://llvm.org/bugs/show_bug.cgi?id=16091</a> ) - this should never have been a fatal, unavoidable error. I'll look into fixing it, but I don't think there's anything we can do for you in the existing, shipped, compilers unfortunately (other than to not use the feature if you want to be able to create debug builds).<br><br>You can still use the C++11 "auto f() -> int" style return type specifications, though.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 3, 2014 at 6:01 AM, Akim Demaille <span dir="ltr"><<a href="mailto:akim@lrde.epita.fr" target="_blank">akim@lrde.epita.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I'm on OS X, and have been eager to try C++14 for months.  However I am<br>
stuck with the following for which I have found no relevant<br>
information.  Is this being worked on?<br>
<br>
Thanks in advance!<br>
<br>
$ cat >foo2.cc <<EOF<br>
template <typename T><br>
struct binary_expr {<br>
    auto operator()(unsigned i){<br>
        return 1;<br>
    }<br>
};<br>
<br>
int main(){<br>
    binary_expr<double> b;<br>
    return 0;<br>
}<br>
EOF<br>
$ clang++-mp-3.5 -std=c++14 foo2.cc -g<br>
error: debug information for auto is not yet supported<br>
1 error generated.<br>
$ clang++-mp-3.5 -std=c++14 foo2.cc<br>
$ clang++-mp-3.5 --version<br>
clang version 3.5.0 (branches/release_35 216817)<br>
Target: x86_64-apple-darwin13.4.0<br>
Thread model: posix<br>
<br>
It's the same with the Apple's version of clang.<br>
<br>
$ clang++ --version<br>
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)<br>
Target: x86_64-apple-darwin13.4.0<br>
Thread model: posix<br>
<br>
<br>
See also <a href="http://stackoverflow.com/questions/24617679/" target="_blank">http://stackoverflow.com/questions/24617679/</a><br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
</blockquote></div><br></div>