[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


           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


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

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