[LLVMbugs] [Bug 14073] New: Missing -Wuninitialized warning for self-initialization of anonymous union member

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 12 01:30:44 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14073

             Bug #: 14073
           Summary: Missing -Wuninitialized warning for
                    self-initialization of anonymous union member
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Clang's -Wuninitialized misses this:

struct S { union { int n; }; S() : n(n) {} };

-- 
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