[LLVMbugs] [Bug 8629] clang++ fails an assertion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 6 15:45:29 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8629
Elias Pipping <pipping at exherbo.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #5 from Elias Pipping <pipping at exherbo.org> 2011-01-06 17:45:27 CST ---
This still fails for me.
bogus% clang++ --version
clang version 2.9 (trunk 122981)
Target: x86_64-pc-linux-gnu
Thread model: posix
bogus%
bogus% clang++ -c dgfparserblocks.ii
dgfparserblocks.ii:25:14: warning: 'template' keyword outside of a template
[-Wc++0x-extensions]
simplex_.template initialize<0>();
^~~~~~~~
dgfparserblocks.ii:9:24: warning: template argument uses local type
'GenericReferenceElement<double>::type'
[-Wlocal-type-template-args]
typedef Initialize<Topology> Init;
^~~~~~~~
dgfparserblocks.ii:15:5: note: in instantiation of function template
specialization
'GenericReferenceElement<double>::initializeTopology<GenericReferenceElement<double>::type>'
requested here
initializeTopology<type>();
^
dgfparserblocks.ii:25:5: note: in instantiation of function template
specialization
'GenericReferenceElement<double>::initialize<0>' requested here
simplex_.template initialize<0>();
^
clang:
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h:1287:
void
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
0 libLLVM-2.9svn.so 0x00007f44f88d2dcf
1 libLLVM-2.9svn.so 0x00007f44f88d3b61
2 libpthread.so.0 0x00007f44f7e19fe0
3 libc.so.6 0x00007f44f71376a5 gsignal + 53
4 libc.so.6 0x00007f44f71389a5 abort + 389
5 libc.so.6 0x00007f44f7130235 __assert_fail + 245
6 clang 0x0000000000969a52
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 1666
7 clang 0x000000000096a4cb
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1147
8 clang 0x000000000099a4a9
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&, std::pair<clang::SourceLocation,
clang::PartialDiagnostic>) + 1081
9 clang 0x000000000099ae94
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&) + 84
10 clang 0x00000000007bd46a
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 378
11 clang 0x000000000092c080
clang::Sema::LookupTemplateName(clang::LookupResult&, clang::Scope*,
clang::CXXScopeSpec&, clang::QualType, bool, bool&) + 2032
12 clang 0x000000000092cace
clang::Sema::isTemplateName(clang::Scope*, clang::CXXScopeSpec&, bool,
clang::UnqualifiedId&, clang::OpaquePtr<clang::QualType>, bool,
clang::OpaquePtr<clang::TemplateName>&, bool&) + 366
13 clang 0x000000000092ce2e
clang::Sema::ActOnDependentTemplateName(clang::Scope*, clang::SourceLocation,
clang::CXXScopeSpec&, clang::UnqualifiedId&, clang::OpaquePtr<clang::QualType>,
bool, clang::OpaquePtr<clang::TemplateName>&) + 206
14 clang 0x000000000095a7e6
15 clang 0x000000000096d54b
16 clang 0x0000000000961e2b
17 clang 0x0000000000964bd0
18 clang 0x000000000096c770
19 clang 0x000000000096ca7e
20 clang 0x0000000000974d78
21 clang 0x00000000009602e5
22 clang 0x00000000009766b0
23 clang 0x0000000000976863
24 clang 0x000000000095fa85
25 clang 0x0000000000971f45
26 clang 0x0000000000972ca4
27 clang 0x000000000097209d
28 clang 0x000000000097354d clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 45
29 clang 0x00000000009866f6
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 790
30 clang 0x0000000000986c4d
clang::Sema::PerformPendingInstantiations(bool) + 365
31 clang 0x000000000098699f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1471
32 clang 0x0000000000986c4d
clang::Sema::PerformPendingInstantiations(bool) + 365
33 clang 0x00000000007aa8f2
clang::Sema::ActOnEndOfTranslationUnit() + 242
34 clang 0x0000000000771409
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 201
35 clang 0x0000000000758a23 clang::ParseAST(clang::Sema&, bool) +
147
36 clang 0x00000000006305b4 clang::CodeGenAction::ExecuteAction() +
68
37 clang 0x000000000052e863
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 355
38 clang 0x000000000050c9ac
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276
39 clang 0x0000000000504f40 cc1_main(char const**, char const**,
char const*, void*) + 672
40 clang 0x000000000050b9aa main + 4458
41 libc.so.6 0x00007f44f7123c7d __libc_start_main + 253
42 clang 0x0000000000503699
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -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.21.51.0.2.20101206
-resource-dir /usr/bin/../lib/clang/2.9 -ferror-limit 19 -fmessage-length 118
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
dgfparserblocks.o -x c++-cpp-output dgfparserblocks.ii
1. <eof> parser at end of file
2. dgfparserblocks.ii:12:24: instantiating function definition
'initialize'
3. dgfparserblocks.ii:7:33: 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)
bogus%
--
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