<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ICE on invalid "int x = { y[""
   href="http://llvm.org/bugs/show_bug.cgi?id=21679">21679</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ICE on invalid "int x = { y["
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>greg_bedwell@sn.scee.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, rikka@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>