https://llvm.org/bugs/show_bug.cgi?id=31798

            Bug ID: 31798
           Summary: Assert failed after throwing syntax error for
                    incorrect brace
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: balarishi.bhog...@amd.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17911
  --> https://llvm.org/bugs/attachment.cgi?id=17911&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to