[llvm-bugs] [Bug 24863] crasher: "typedef &decltype(auto)::x T;"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 2 03:31:49 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=24863

NODA, Kai <nodakai at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nodakai at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from NODA, Kai <nodakai at gmail.com> ---
Neither test cases crash clang trunk at 306691 as of today:

/tmp/c.cpp:1:10: error: expected unqualified-id
typedef &decltype(auto)::x T;
         ^
1 error generated.

/tmp/c.cpp:1:17: warning: extra qualification on member 'crash'
[-Wextra-qualification]
decltype(auto)::crash crashed;
                ^
/tmp/c.cpp:1:17: error: no member named 'crash' in the global namespace
decltype(auto)::crash crashed;
              ~~^
/tmp/c.cpp:1:17: error: declaration of variable 'crash' with deduced type
'decltype(auto)' requires an initializer
/tmp/c.cpp:1:22: error: expected ';' after top level declarator
decltype(auto)::crash crashed;
                     ^
                     ;
1 warning and 3 errors generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170702/fb549de3/attachment.html>


More information about the llvm-bugs mailing list