<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - TemplateSpecializationType with no RecordType as CXXBaseSpecifier"
   href="https://llvm.org/bugs/show_bug.cgi?id=31469">31469</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TemplateSpecializationType with no RecordType as CXXBaseSpecifier
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Modules
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vvasilev@cern.ch
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>/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>'</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>