<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 --- - Assert failed after throwing syntax error for incorrect brace"
   href="https://llvm.org/bugs/show_bug.cgi?id=31798">31798</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assert failed after throwing syntax error for incorrect brace
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>balarishi.bhogadi@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17911" name="attach_17911" title="Preprocessed source">attachment 17911</a> <a href="attachment.cgi?id=17911&action=edit" title="Preprocessed source">[details]</a></span>
Preprocessed source

For the attached small testcase syntax errors are thrown as expected for
incorrect brace. Then the below assertion failure occurs:
clang++:
/home/amd/JENKINS/workspace/CPUPC_Mirror_Branch/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:7362:
clang::ExprResult clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*,
clang::VarDecl*, l   
lvm::function_ref<clang::ActionResult<clang::Expr*>(clang::Expr*)>): Assertion
`TyposInContext < ~0U && "Recursive call of CorrectDelayedTyposInExpr"' failed.


This regression was introduced in 3.8.


Attached required files to reproduce the issue.


This issue was faced while trying to reproduce the issue, "Compilation not
completing for gnomon_engine.cpp of BlastC++" (Bug-id: 31751) with a smaller
testcase.</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>