[LLVMbugs] [Bug 9495] New: failed assertion "Jump didn't get added to scopes?"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 16 07:45:18 PDT 2011


           Summary: failed assertion "Jump didn't get added to scopes?"
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ps at kr.tuwien.ac.at
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=6331)
 --> (http://llvm.org/bugs/attachment.cgi?id=6331)
delta-reduced testcase to reproduce the assertion

Dear clang developers,

starting on May 15, not yet happening on May 14 I get the assertion below on
code that compiled fine before.

This issue was introduced or materialized between revisions 127572 and 127633
of the trunk.

I attached a delta-reduced testcase.

clang: JumpDiagnostics.cpp:541:
void<unnamed>::JumpScopeChecker::CheckJump(clang::Stmt*, clang::Stmt*,
clang::SourceLocation, unsigned int): Assertion `LabelAndGotoScopes.count(To)
&& "Jump didn't get added to scopes?"' failed.
0  clang           0x0000000001648b3f
1  clang           0x000000000164968a
2  libpthread.so.0 0x00007fb3d7166b40
3  libc.so.6       0x00007fb3d6464ba5 gsignal + 53
4  libc.so.6       0x00007fb3d64686b0 abort + 384
5  libc.so.6       0x00007fb3d645da71 __assert_fail + 241
6  clang           0x0000000000b30097
7  clang           0x0000000000b322fe
clang::Sema::DiagnoseInvalidJumps(clang::Stmt*) + 686
8  clang           0x00000000009631ef
clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) + 639
9  clang           0x0000000000885df3
clang::Parser::ParseFunctionStatementBody(clang::Decl*) + 163
10 clang           0x00000000008d1db3
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 419
11 clang           0x00000000008d1b71
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 145
Stack dump:
0.      Program arguments: /var/lib/buildbot/instdirs/clang-trunk/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name QueryPlugin.E.cpp -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.20.51 -momit-leaf-frame-pointer -resource-dir
/var/lib/buildbot/instdirs/clang-trunk/bin/../lib/clang/3.0 -ferror-limit 19
-fmessage-length 133 -fcxx-exceptions -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-IjF3z7.o -x c++
1.      <eof> parser at end of file
2.      QueryPlugin.E.cpp:4:8: parsing namespace 'bm'
3.      QueryPlugin.E.cpp:19:30: parsing struct/union/class body
4.      QueryPlugin.E.cpp:25:69: parsing function body 'operator()'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list