[llvm-bugs] [Bug 26598] New: Assertion `DelayedTypos.empty() && "Uncorrected typos!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 12 15:57:50 PST 2016


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

            Bug ID: 26598
           Summary: Assertion `DelayedTypos.empty() && "Uncorrected
                    typos!"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rtrieu at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat typo.cpp
int main() {
  (((str) ? str : str))
}
$ clang typo.cpp
typo.cpp:2:6: error: use of undeclared identifier 'str'
  (((str) ? str : str))
     ^
typo.cpp:2:19: error: use of undeclared identifier 'str'
  (((str) ? str : str))
                  ^
2 errors generated.
$ clang -cc1 typo.cpp
typo.cpp:2:6: error: use of undeclared identifier 'str'
  (((str) ? str : str))
     ^
typo.cpp:2:19: error: use of undeclared identifier 'str'
  (((str) ? str : str))
                  ^
clang: ../tools/clang/lib/Sema/Sema.cpp:295: clang::Sema::~Sema(): Assertion
`DelayedTypos.empty() && "Uncorrected typos!"' failed.
#0 0x00000000018b2378 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/clang-3.5+0x18b2378)
#1 0x00000000018b2ae7 SignalHandler(int) (/usr/local/bin/clang-3.5+0x18b2ae7)
#2 0x00007f56ea2df330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f56e980bcb7 gsignal
/tmp/tmp.Htw1L27e9P/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f56e980f0a8 abort /tmp/tmp.Htw1L27e9P/stdlib/abort.c:91:0
#5 0x00007f56e9804b76 __assert_fail_base
/tmp/tmp.Htw1L27e9P/assert/assert.c:92:0
#6 0x00007f56e9804c22 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc22)
#7 0x00000000026788dc clang::Sema::~Sema() (/usr/local/bin/clang-3.5+0x26788dc)
#8 0x0000000001d82986 clang::CompilerInstance::setSema(clang::Sema*)
(/usr/local/bin/clang-3.5+0x1d82986)
#9 0x0000000001dbde99 clang::FrontendAction::EndSourceFile()
(/usr/local/bin/clang-3.5+0x1dbde99)
#10 0x0000000001d87eb9
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/clang-3.5+0x1d87eb9)
#11 0x0000000001e5572c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/clang-3.5+0x1e5572c)
#12 0x000000000072e038 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-3.5+0x72e038)
#13 0x000000000072ca9f main (/usr/local/bin/clang-3.5+0x72ca9f)
#14 0x00007f56e97f6ec5 __libc_start_main
/tmp/tmp.Htw1L27e9P/csu/libc-start.c:321:0
#15 0x000000000072988e _start (/usr/local/bin/clang-3.5+0x72988e)
Stack dump:
0.    Program arguments: clang -cc1 typo.cpp 
Aborted (core dumped)

-- 
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/20160212/038adc4d/attachment.html>


More information about the llvm-bugs mailing list