http://llvm.org/bugs/show_bug.cgi?id=14737
Bug #: 14737
Summary: Reject valid?
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
clang rejects
struct foo {
struct {
void bar() {
}
};
};
But looking at the standard the restrictions I can find are:
* The member-specification of an anonymous union shall only define non-static
data members. (doesn't apply, we have a struct).
* Unnamed classes and classes contained directly or indirectly within unnamed
classes shall not contain static data members. (dosn't apply, we have a
function).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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