[LLVMbugs] [Bug 8149] New: [CFG] GNU statement-expression ({}) segfaults

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 14 16:10:55 PDT 2010


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

           Summary: [CFG] GNU statement-expression ({}) segfaults
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pip88nl at gmail.com
                CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu,
                    dgregor at apple.com


The following code:

// BEGIN
void foo (void) {
  for (; ({ do { } while (0); 0; });) { }
}
// END

segfaults on:
clang version 2.9 (trunk 113840)
Target: x86_64-pc-linux-gnu
Thread model: posix

Note that it does not segfault if "void foo" is "int main".

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