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

David Blaikie dblaikie at gmail.com
Mon Nov 3 08:26:45 PST 2014


I'll cop to this, totally my mistake (
http://llvm.org/bugs/show_bug.cgi?id=16091 ) - 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).

You can still use the C++11 "auto f() -> int" style return type
specifications, though.

On Mon, Nov 3, 2014 at 6:01 AM, Akim Demaille <akim at lrde.epita.fr> wrote:

> Hi!
>
> 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;
> }
> EOF
> $ 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/
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20141103/6bf86b8a/attachment.html>


More information about the cfe-users mailing list