[llvm-bugs] [Bug 31798] New: Assert failed after throwing syntax error for incorrect brace

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 30 01:59:28 PST 2017


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: unassignedclangbugs at nondot.org
          Reporter: balarishi.bhogadi at amd.com
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170130/dc9ea970/attachment.html>


More information about the llvm-bugs mailing list