[LLVMbugs] [Bug 18898] New: Clang hangs with -O1 on switches

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 19 04:57:26 PST 2014


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

            Bug ID: 18898
           Summary: Clang hangs with -O1 on switches
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: skvadrik at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12088
  --> http://llvm.org/bugs/attachment.cgi?id=12088&action=edit
re2c-generated C++ source file, contains big 'switch' statemants.

This hangs infinitely:

$ clang++ -O1 utf16_group_C.w.cpp

This .cpp file is autogenerated by RE2C scanner generator. RE2C can generate
either 'switch' statements or nested 'if' statements that express the same
logic.
Clang hangs on 'switch'es, but doesn't hang on 'if's. Clang hangs with -O1 or
higher level of optimisations, but not with -O0.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140219/5f661f0d/attachment.html>


More information about the llvm-bugs mailing list