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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 13 16:53:19 PDT 2010


           Summary: 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: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5487)
 --> (http://llvm.org/bugs/attachment.cgi?id=5487)
stack trace

The following code:

struct list
  struct list *tail;

struct list *
foo (void)
  struct list *items;

  for (;; items = ({ do { } while (0); items->tail; }))
// END


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.

More information about the llvm-bugs mailing list