http://llvm.org/bugs/show_bug.cgi?id=19881
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #5 from Richard Smith <[email protected]> --- (In reply to comment #4) > Is the syntax for cv qualifiers and __attribute__ different with this > respect? Yes. GCC's attribute syntax is weird and underdocumented, but it doesn't behave like cv-qualifiers in this context. > If so, is the difference by accident and incidental, or is there > some underlying reason? You should ask the GCC folks this question; we didn't invent the syntax and semantics here and weren't involved in its design. We just try to be compatible with how GCC behaves. Here's what the [GCC documentation](https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Attribute-Syntax.html) has to say on this: "Any list of specifiers and qualifiers at the start of a declaration may contain attribute specifiers[...]. All attribute specifiers in this place relate to the declaration as a whole." -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
