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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to