http://llvm.org/bugs/show_bug.cgi?id=8141
Summary: 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]
Created an attachment (id=5487)
--> (http://llvm.org/bugs/attachment.cgi?id=5487)
stack trace
The following code:
// BEGIN
struct list
{
struct list *tail;
};
struct list *
foo (void)
{
struct list *items;
for (;; items = ({ do { } while (0); items->tail; }))
{
}
}
// END
segfaults:
clang version 2.8 (trunk 113114)
Target: x86_64-pc-linux-gnu
Thread model: posix
stack trace attached.
--
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