[llvm-bugs] [Bug 26288] New: Clang FE fails with assertion "DelayedTypos.empty() && "Uncorrected typos!"

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 25 02:53:45 PST 2016


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

            Bug ID: 26288
           Summary: Clang FE fails with assertion "DelayedTypos.empty() &&
                    "Uncorrected typos!"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andrey.kuleshov at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

!- 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

-- 
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/20160125/1502e484/attachment.html>


More information about the llvm-bugs mailing list