<html>
    <head>
      <base href="https://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 --- - Clang FE fails with assertion "DelayedTypos.empty() && "Uncorrected typos!""
   href="https://llvm.org/bugs/show_bug.cgi?id=26288">26288</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang FE fails with assertion "DelayedTypos.empty() && "Uncorrected typos!"
          </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>Linux
          </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>andrey.kuleshov@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>!- In this case Clang works correctly, but Front-end (-cc1) fails with
assertion "DelayedTypos.empty() && "Uncorrected typos!". Seems that it happens
because driver passes some option to a FE, that prevents a fail. -!

==========Environment=============
OS: Linux
Lang: C++ (std=c++11)
Version: trunk

==========How to reproduce========
void f() {
    for ( struct S { int x; } i : X) ;
}

$ clang -cc1 test.cpp

==========Error===================
clang:/export/users/akulesho/compilers/ws_llvm_org/llvm/tools/clang/lib/Sema/Sema.cpp:290:
clang::Sema::~Sema(): Assertion `DelayedTypos.empty() && "Uncorrected typos!"'
failed.
#0 0x0000000002d469f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
PATH/llvm/lib/Support/Unix/Signals.inc:322:0
<...>

==================
Intel Compiler Engineer 
Andrey Kuleshov</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>