[llvm-bugs] [Bug 25676] compiler rejects allignas with using declaration

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 30 11:30:49 PST 2015


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #0)
> according to various reports one can google, [...] the above usage is correct.

Those reports are wrong. The standard is completely clear on the entities to
which this attribute can appertain, and they are:

  - variable declarations
  - non-static data member declarations
  - the definition of a class or enumeration

This is none of those things, so it's ill-formed, exactly as clang's diagnostic
says.

-- 
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/20151130/9c75f013/attachment.html>


More information about the llvm-bugs mailing list