[llvm-bugs] [Bug 28099] clang rejects valid C++11 code with decltype

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 12 21:12:07 PDT 2016


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

David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Majnemer <david.majnemer at gmail.com> ---
This testcase is invalid C++, the bug is apparently in GCC.

To quote [dcl.meaning]p1:
"The nested-name-specifier of a qualified declarator-id shall not begin with a
decltype-specifier."

Your nested-name-specifier is 'decltype (A ())' which starts with a
decltype-specifier.

-- 
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/20160613/6a7a903f/attachment-0001.html>


More information about the llvm-bugs mailing list