[llvm-bugs] [Bug 31482] Attributes in a type-specifier-seq

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 28 10:59:13 PST 2016


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

Aaron Ballman <aaron at aaronballman.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Aaron Ballman <aaron at aaronballman.com> ---
(In reply to comment #1)
> Here's the grammar:
> 
> type-specifier-seq:
>   type-specifier attribute-specifier-seq[opt]
>   type-specifier type-specifier-seq
> 
> Note that this only permits attributes at the end of the sequence, not in
> the middle.

Ah, that's a good point. I didn't notice that.

> The other compilers are wrong to accept your example. Perhaps we
> could use the 'misplaced attributes' diagnostic instead, and explicitly say
> where the attributes should be written?

That might not be a bad idea, but I no longer consider this to be a bug with
Clang.

-- 
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/20161228/fbd3e57e/attachment.html>


More information about the llvm-bugs mailing list