https://llvm.org/bugs/show_bug.cgi?id=31054

            Bug ID: 31054
           Summary: Global Variable Optimizer segmentation fault on valid
                    input
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: juergen.hun...@gmx.de
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17610
  --> https://llvm.org/bugs/attachment.cgi?id=17610&action=edit
Reduced testcase with stackstrace and run script

When compiling the attached reduced test case, current clang segfaults with

1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Global Variable Optimizer' on module 'report.ii'.
Segmentation fault (core dumped)

Full diagnostics in attached test case

It seems that the creation of a static variable after the assert() triggers
this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to