[LLVMbugs] [Bug 22290] New: Consider a warning for alignment specifiers on underlying types of enums
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 21 18:46:33 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22290
Bug ID: 22290
Summary: Consider a warning for alignment specifiers on
underlying types of enums
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm-bugs at justinbogner.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Alignment is not a property of types, and as of r226653 code like the following
does the right thing by ignoring the aligned(64) attribute for X:
typedef int __attribute__((aligned(64))) N;
enum X : N {} x;
It's not clear when it makes sense to write this code as above, but it seems
quite likely that the programmer is confused. We should consider warning that
the alignment attribute doesn't propagate to the enum if we see this.
--
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/20150122/38c2921c/attachment.html>
More information about the llvm-bugs
mailing list