[llvm-bugs] [Bug 31469] New: TemplateSpecializationType with no RecordType as CXXBaseSpecifier
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 26 05:08:50 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31469
Bug ID: 31469
Summary: TemplateSpecializationType with no RecordType as
CXXBaseSpecifier
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: vvasilev at cern.ch
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
/llvm-git/inst/bin/../lib/clang/4.0.0 -I
includes/Users/vvassilev/workspace/root_obj_cmake/include -stdlib=libc++
-std=c++11 -ferror-limit 19 -stack-protector 1 -fblocks -fmodules
-fmodules-cache-path=./mod.cache
-fmodule-map-file=includes/Users/vvassilev/workspace/root_obj_cmake/include/module.modulemap
-fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fno-common
-fdiagnostics-show-option -fdiagnostics-show-note-include-stack
-fmodules-local-submodule-visibility -fsyntax-only -x c++ TString.cxx
-nostdsysteminc -isystem
includes/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/
-isystem includes/usr/include/
14:18:27-vvassilev~/workspace/reproducers/PR_TString_Codegen$ rm -fr
mod.cache/*; /Users/vvassilev/workspace/llvm-git/inst/bin/clang-3.9 -cc1
-emit-obj -resource-dir
/Users/vvassilev/workspace/llvm-git/inst/bin/../lib/clang/4.0.0 -I
includes/Users/vvassilev/workspace/root_obj_cmake/include -stdlib=libc++
-std=c++11 -ferror-limit 19 -stack-protector 1 -fblocks -fmodules
-fmodules-cache-path=./mod.cache
-fmodule-map-file=includes/Users/vvassilev/workspace/root_obj_cmake/include/module.modulemap
-fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fno-common
-fdiagnostics-show-option -fdiagnostics-show-note-include-stack
-fmodules-local-submodule-visibility -fsyntax-only -x c++ TString.cxx
-nostdsysteminc -isystem
includes/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/
-isystem includes/usr/include
0 clang-3.9 0x000000010dd54436 SignalHandler(int) + 342
1 libsystem_platform.dylib 0x00007fff9b73d52a _sigtramp + 26
2 clang-3.9 0x000000010ed6e8d8
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::QualType*) + 19688
3 clang-3.9 0x000000010ebff70a
BuildImplicitBaseInitializer(clang::Sema&, clang::CXXConstructorDecl*,
ImplicitInitializerKind, clang::CXXBaseSpecifier*, bool,
clang::CXXCtorInitializer*&) + 266
4 clang-3.9 0x000000010ebfee2f
clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, bool,
llvm::ArrayRef<clang::CXXCtorInitializer*>) + 3503
5 clang-3.9 0x000000010ec033a6
clang::Sema::ActOnMemInitializers(clang::Decl*, clang::SourceLocation,
llvm::ArrayRef<clang::CXXCtorInitializer*>, bool) + 3926
6 clang-3.9 0x000000010ef470c9
clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl*,
clang::CXXConstructorDecl const*, clang::MultiLevelTemplateArgumentList const&)
+ 1769
7 clang-3.9 0x000000010ef463d1
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 2529
8 clang-3.9 0x000000010ef409db
clang::Sema::PerformPendingInstantiations(bool) + 91
9 clang-3.9 0x000000010eaa384a
clang::Sema::ActOnEndOfTranslationUnit() + 250
10 clang-3.9 0x000000010e900279
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 569
11 clang-3.9 0x000000010e869095 clang::ParseAST(clang::Sema&,
bool, bool) + 389
12 clang-3.9 0x000000010e2806d3 clang::FrontendAction::Execute()
+ 67
13 clang-3.9 0x000000010e2415f8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1032
14 clang-3.9 0x000000010e2c295d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 5293
15 clang-3.9 0x000000010d324711 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1185
16 clang-3.9 0x000000010d323810 main + 11952
Stack dump:
0. Program arguments: /Users/vvassilev/workspace/llvm-git/inst/bin/clang-3.9
-cc1 -emit-obj -resource-dir
/Users/vvassilev/workspace/llvm-git/inst/bin/../lib/clang/4.0.0 -I
includes/Users/vvassilev/workspace/root_obj_cmake/include -stdlib=libc++
-std=c++11 -ferror-limit 19 -stack-protector 1 -fblocks -fmodules
-fmodules-cache-path=./mod.cache
-fmodule-map-file=includes/Users/vvassilev/workspace/root_obj_cmake/include/module.modulemap
-fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fno-common
-fdiagnostics-show-option -fdiagnostics-show-note-include-stack
-fmodules-local-submodule-visibility -fsyntax-only -x c++ TString.cxx
-nostdsysteminc -isystem
includes/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/
-isystem includes/usr/include
1. <eof> parser at end of file
2.
includes/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:13:5:
instantiating function definition 'A::__1::list<int,
allocator<type-parameter-0-0> >::list'
Segmentation fault: 11
frame #5: 0x0000000104026b63
clang`BuildImplicitBaseInitializer(SemaRef=0x000000010f803800,
Constructor=0x000000010e0393f0, ImplicitInitKind=IIK_Default,
BaseSpec=0x000000010e0392c0, IsInheritedVirtualBase=false,
CXXBaseInit=0x00007fff5fbf8ad0) + 499 at SemaDeclCXX.cpp:4130
4127 InitializationKind InitKind
4128 =
InitializationKind::CreateDefault(Constructor->getLocation());
4129 InitializationSequence InitSeq(SemaRef, InitEntity, InitKind,
None);
-> 4130 BaseInit = InitSeq.Perform(SemaRef, InitEntity, InitKind, None);
4131 break;
4132 }
4133
(lldb) p InitEntity.getType().dump()
TemplateSpecializationType 0x10e039200 '__list_imp<int,
allocator<type-parameter-0-0> >' dependent __list_imp
|-TemplateArgument type 'int':'int'
`-TemplateArgument type
'allocator<type-parameter-0-0>':'allocator<type-parameter-0-0>'
--
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/20161226/7354eeaf/attachment.html>
More information about the llvm-bugs
mailing list