[LLVMbugs] [Bug 8629] New: clang++ fails an assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 16 20:51:10 PST 2010


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

           Summary: clang++ fails an assertion
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


pipping at bogus ~/delta $ clang++ -S dgfparserblocks.ii -w
clang:
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h:1253:
void
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
0  libLLVM-2.9svn.so 0x00007fc803884a0f
1  libLLVM-2.9svn.so 0x00007fc803884ff9
2  libpthread.so.0   0x00007fc802d13fa0
3  libc.so.6         0x00007fc80202b165 gsignal + 53
4  libc.so.6         0x00007fc80202c3ff abort + 383
5  libc.so.6         0x00007fc802024351 __assert_fail + 241
6  clang             0x00000000008fad6d
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 2061
7  clang             0x00000000008fb499
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1769
8  clang             0x000000000091e317
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&, std::pair<clang::SourceLocation,
clang::PartialDiagnostic>) + 327
9  clang             0x000000000091e71d
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&) + 77
10 clang             0x0000000000772725
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 341
11 clang             0x00000000008b674e
clang::Sema::LookupTemplateName(clang::LookupResult&, clang::Scope*,
clang::CXXScopeSpec&, clang::QualType, bool, bool&) + 254
12 clang             0x00000000008b64a0
clang::Sema::isTemplateName(clang::Scope*, clang::CXXScopeSpec&, bool,
clang::UnqualifiedId&, clang::OpaquePtr<clang::QualType>, bool,
clang::OpaquePtr<clang::TemplateName>&, bool&) + 368
13 clang             0x00000000008beb89
clang::Sema::ActOnDependentTemplateName(clang::Scope*, clang::SourceLocation,
clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::OpaquePtr<clang::QualType>,
bool, clang::OpaquePtr<clang::TemplateName>&) + 505
14 clang             0x0000000000908fe3
15 clang             0x00000000009095f2
16 clang             0x000000000090a752
17 clang             0x000000000090a3fb
18 clang             0x0000000000908850
19 clang             0x00000000008fee27
20 clang             0x000000000090bbd5
21 clang             0x0000000000900dc3
22 clang             0x00000000008fd3ca
23 clang             0x000000000090b27d
24 clang             0x00000000008fc2ea
25 clang             0x00000000008fbaac clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 60
26 clang             0x000000000091511c
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1772
27 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
28 clang             0x0000000000915203
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2003
29 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
30 clang             0x0000000000915203
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2003
31 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
32 clang             0x0000000000915203
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2003
33 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
34 clang             0x0000000000915203
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2003
35 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
36 clang             0x0000000000915203
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2003
37 clang             0x00000000009159d8
clang::Sema::PerformPendingInstantiations(bool) + 296
38 clang             0x000000000076367a
clang::Sema::ActOnEndOfTranslationUnit() + 42
39 clang             0x0000000000731f66
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 38
40 clang             0x0000000000722ade clang::ParseAST(clang::Sema&, bool) +
702
41 clang             0x00000000006125b5 clang::CodeGenAction::ExecuteAction() +
709
42 clang             0x0000000000532927
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 903
43 clang             0x0000000000516dcf
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2767
44 clang             0x000000000050ffbb cc1_main(char const**, char const**,
char const*, void*) + 5899
45 clang             0x00000000005139ff main + 655
46 libc.so.6         0x00007fc802017ced __libc_start_main + 253
47 clang             0x000000000050e7e9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -S
-disable-free -main-file-name dgfparserblocks.ii -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.20.1.20100303 -resource-dir
/usr/bin/../lib/clang/2.9 -w -ferror-limit 19 -fmessage-length 118 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
dgfparserblocks.s -x c++-cpp-output dgfparserblocks.ii 
1.      <eof> parser at end of file
2.      dgfparserblocks.ii:138:75: instantiating function definition
'generateCubeFace'
3.      dgfparserblocks.ii:133:55: instantiating function definition 'cube'
4.      dgfparserblocks.ii:121:50: instantiating function definition 'instance'
5.      dgfparserblocks.ii:125:22: instantiating function definition
'GenericReferenceElementContainer'
6.      dgfparserblocks.ii:104:62: instantiating function definition
'initialize'
7.      dgfparserblocks.ii:99:45: instantiating function definition
'initializeTopology'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
pipping at bogus ~/delta $

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