[LLVMbugs] [Bug 13523] New: Failed assertion: `ModLen == 0 && ArgLen == 0 && "Invalid modifier for QualType argument"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 3 14:41:27 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13523

             Bug #: 13523
           Summary: Failed assertion: `ModLen == 0 && ArgLen == 0 &&
                    "Invalid modifier for QualType argument"'
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang:
/home/cocktail/pipping/llvm-3.1.src/tools/clang/lib/AST/ASTDiagnostic.cpp:249:
void
clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind,
intptr_t, const char*, unsigned int, const char*, unsigned int, const
ArgumentValue*, unsigned int, llvm::SmallVectorImpl<char>&, void*,
llvm::ArrayRef<long int>): Assertion `ModLen == 0 && ArgLen == 0 && "Invalid
modifier for QualType argument"' failed.
0  clang           0x0000000001dbe90f
1  clang           0x0000000001dbedf9
2  libpthread.so.0 0x00007fbf6247cff0
3  libc.so.6       0x00007fbf6179f1b5 gsignal + 53
4  libc.so.6       0x00007fbf617a1fc0 abort + 384
5  libc.so.6       0x00007fbf61798301 __assert_fail + 241
6  clang           0x000000000104b825
clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind,
long, char const*, unsigned int, char const*, unsigned int,
std::pair<clang::DiagnosticsEngine::ArgumentKind, long> const*, unsigned int,
llvm::SmallVectorImpl<char>&, void*, llvm::ArrayRef<long>) + 3317
7  clang           0x00000000011b802a clang::Diagnostic::FormatDiagnostic(char
const*, char const*, llvm::SmallVectorImpl<char>&) const + 1834
8  clang           0x0000000000796967
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 87
9  clang           0x00000000011be5d1
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 481
10 clang           0x00000000011b7704
clang::DiagnosticsEngine::EmitCurrentDiagnostic() + 20
11 clang           0x0000000000a4cc3e
clang::Sema::EmitCurrentDiagnostic(unsigned int) + 446
12 clang           0x0000000000a522ab
13 clang           0x0000000000b0d330
14 clang           0x0000000000b0d8e7
clang::Sema::ShouldDeleteSpecialMember(clang::CXXMethodDecl*,
clang::Sema::CXXSpecialMember, bool) + 951
15 clang           0x0000000000b4233b
clang::Sema::NoteDeletedFunction(clang::FunctionDecl*) + 283
16 clang           0x0000000000c13ae6
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int,
clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 1878
17 clang           0x0000000000b3d592
18 clang           0x0000000000b65058 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
488
19 clang           0x0000000000b6521f clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) + 255
20 clang           0x00000000009fb890
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 1184
21 clang           0x00000000009fc57f
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 47
22 clang           0x00000000009fd549
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
23 clang           0x0000000000a2b472 clang::Parser::ParseExprStatement() + 50
24 clang           0x0000000000a26df3
clang::Parser::ParseStatementOrDeclarationAfterAttributes(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 899
25 clang           0x0000000000a2769d
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 141
26 clang           0x0000000000a29062
clang::Parser::ParseForStatement(clang::SourceLocation*) + 1202
27 clang           0x0000000000a272fb
clang::Parser::ParseStatementOrDeclarationAfterAttributes(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2187
28 clang           0x0000000000a2769d
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 141
29 clang           0x0000000000a24c67
clang::Parser::ParseCompoundStatementBody(bool) + 1703
30 clang           0x0000000000a2ba3d
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 141
31 clang           0x0000000000a39742
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 674
32 clang           0x0000000000a39420
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 160
33 clang           0x00000000009f4e05
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 3189
34 clang           0x00000000009f5d53
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext) + 2995

35 clang           0x00000000009e28f9
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext,
llvm::SmallVector<clang::Parser::LateParsedAttribute*, 2u>*) + 2121
36 clang           0x00000000009d163c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 92
37 clang           0x00000000009d1c5e
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 798
38 clang           0x00000000009d5f24
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2036
39 clang           0x00000000009f1e4a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 378
40 clang           0x00000000009f3825 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1573
41 clang           0x00000000009e6f5e
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 446
42 clang           0x00000000009d5b0b
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 987
43 clang           0x00000000009f1e4a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 378
44 clang           0x00000000009f3825 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1573
45 clang           0x00000000009e6f5e
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 446
46 clang           0x00000000009d5b0b
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 987
47 clang           0x00000000009f1e4a
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 378
48 clang           0x00000000009f3825 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1573
49 clang           0x00000000009e6f5e
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 446

50 clang           0x00000000009d5b0b
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 987
51 clang           0x00000000009d60ef
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 191
52 clang           0x00000000009cefbd clang::ParseAST(clang::Sema&, bool, bool)
+ 285
53 clang           0x000000000089ca94 clang::CodeGenAction::ExecuteAction() +
68
54 clang           0x00000000007554d1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 337
55 clang           0x000000000073c6aa
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1098
56 clang           0x0000000000735bdd cc1_main(char const**, char const**, char
const*, void*) + 8973
57 clang           0x0000000000725f02 main + 7634
58 libc.so.6       0x00007fbf6178bc8d __libc_start_main + 253
59 clang           0x0000000000732d2d
Stack dump:
0.      Program arguments: /home/cocktail/pipping/.global/clang/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name reduced-QualType.ii -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file
reduced-QualType.o -resource-dir
/home/cocktail/pipping/.global/clang/bin/../lib/clang/3.1 -std=c++0x
-fdeprecated-macro -fdebug-compilation-dir /home/cocktail/pipping -ferror-limit
19 -fmessage-length 118 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o reduced-QualType.o -x
c++-cpp-output reduced-QualType.ii 
1.      reduced-QualType.ii:86:28: current parser token ';'
2.      reduced-QualType.ii:2:1: parsing namespace '__gnu_cxx'
3.      reduced-QualType.ii:14:3: parsing namespace 'std'
4.      reduced-QualType.ii:47:5: parsing namespace 'D'
5.      reduced-QualType.ii:74:7: parsing struct/union/class body 'TKF'
6.      reduced-QualType.ii:75:13: parsing function body 'main'
7.      reduced-QualType.ii:75:13: in compound statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/reduced-QualType-qpmFV1.ii
clang: note: diagnostic msg: /tmp/reduced-QualType-qpmFV1.sh

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