[LLVMbugs] [Bug 2018] New: Crash with void compound literal

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 11 20:49:42 PST 2008


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

           Summary: Crash with void compound literal
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:

int a() {
(void) { 1 };
}

Should give an error, not crash.

Also, the behavior for the following testcase is odd:

int a() {
(struct a) {1};
}

Probably just need a check for the restriction in 6.5.2.5p1.


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