[llvm-bugs] [Bug 24559] New: GNU attributes after declspecs don't parse
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 24 13:36:37 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24559
Bug ID: 24559
Summary: GNU attributes after declspecs don't parse
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: hans at chromium.org
CC: aaron at aaronballman.com, david.majnemer at gmail.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
With clang-cl, this parses fine:
struct __attribute__((lockable)) __declspec(dllexport) S { };
while this does not:
struct __declspec(dllexport) __attribute__((lockable)) T { };
/tmp/a.cc(3,1) : error: declaration of anonymous struct must be a definition
struct __declspec(dllexport) __attribute__((lockable)) T { };
^
/tmp/a.cc(3,1) : warning: declaration does not declare anything
[-Wmissing-declarations]
struct __declspec(dllexport) __attribute__((lockable)) T { };
^
It would be great if we could allow both orderings, or at least provide a
better error message.
--
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/20150824/c191fb9e/attachment.html>
More information about the llvm-bugs
mailing list