[LLVMbugs] [Bug 14737] New: Reject valid?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 28 20:02:41 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list