[LLVMbugs] [Bug 21679] New: ICE on invalid "int x = { y["

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 26 12:40:25 PST 2014


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

            Bug ID: 21679
           Summary: ICE on invalid "int x = { y["
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: greg_bedwell at sn.scee.net
                CC: llvmbugs at cs.uiuc.edu, rikka at google.com
    Classification: Unclassified

Since r222551 ("Enable ActOnIdExpression to use delayed typo correction for
non-C++ code when calling DiagnoseEmptyLookup"), the following (invalid) C++
input has started causing clang to crash.  I've verified that it produces the
expected compilation errors without crashing in r222550 but is still crashing
as of r222849:

// begin
int x = { y[
// end

$ clang -c small_ice.cpp -fsyntax-only -target x86_64-unknown-unknown
small_ice.cpp:3:7: error: expected expression
// end
      ^
small_ice.cpp:3:7: error: expected ']'
small_ice.cpp:2:12: note: to match this '['
int x = { y[
           ^
Stack dump:
0.      Program arguments: c:\work\public_svn\cached_builds\222551\clang.exe
-cc1 -triple x86_64-unknown-unknown -fsyntax-only -disable-free -main-file-name
small_ice.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -dwarf-column-info -resource-dir
c:\work\public_svn\cached_builds\222551\..\lib\clang\3.6.0 -fdeprecated-macro
-fdebug-compilation-dir C:\tmp -ferror-limit 19 -fmessage-length 120
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-diagnostics-show-option -fcolor-diagnostics -x c++ small_ice.cpp
1.      <eof> parser at end of file

<snip rest of crash output>

-- 
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/20141126/d5d52568/attachment.html>


More information about the llvm-bugs mailing list