[LLVMbugs] [Bug 23898] New: (null) in diagnostic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 19 13:12:33 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23898

            Bug ID: 23898
           Summary: (null) in diagnostic
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexandermbock at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

void f() {
    union {
        int a;
    };

    class C {
        void g() {
            a = 5;
        }
    };
}

clang says:

error: reference to local variable (null) declared in enclosing function 'f'
            a = 5;
            ^
note: (null) declared here
    union {
    ^

-- 
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/20150619/15541470/attachment.html>


More information about the llvm-bugs mailing list