[LLVMbugs] [Bug 14030] New: Too long expression makes clang crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 5 01:56:38 PDT 2012


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

             Bug #: 14030
           Summary: Too long expression makes clang crash
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: oosaprogrammer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9311
  --> http://llvm.org/bugs/attachment.cgi?id=9311
the source code that makes clang crash, preprocessed source, and associated run
script

I made a hello world C code, which contains one line of very much long
expression.
The very much long expression is composed of a chain of for about 4MB of '+1'.

I made this example to test the recursion in Clang.

gdb cannot produce the backtrace at all. Maybe the crash ate it up all...

But gcc compiles this with no problem. And the result binary works correctly.
Only clang crashes...

Best regards

Journeyer J. Joh

-- 
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