<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 --- - Assertion `Kind.getKind() == InitializationKind::IK_Value || DestType->isReferenceType()' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=25732">25732</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `Kind.getKind() == InitializationKind::IK_Value || DestType->isReferenceType()' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>regehr@cs.utah.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>perhaps related to PR24658 but it's a distinct assertion

$ cat hello.cpp
class ios_base
{
    long &iword
}
class A:ios_base
    A (  ):
    ios_base (  )
{
$ clang++ -v
clang version 3.8.0 (trunk 254595)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/regehr/z/compiler-install/llvm-r254595-install/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ clang++ hello.cpp
hello.cpp:3:16: error: expected ';' at end of declaration list
    long &iword
               ^
               ;
hello.cpp:1:7: warning: class 'ios_base' does not declare any constructor to
initialize its non-modifiable
      members
class ios_base
      ^
hello.cpp:3:11: note: reference member 'iword' will never be initialized
    long &iword
          ^
hello.cpp:4:2: error: expected ';' after class
}
 ^
 ;
hello.cpp:5:17: error: expected '{' after base class list
class A:ios_base
                ^
                 {
hello.cpp:8:2: error: expected '}'
{
 ^
hello.cpp:6:5: note: to match this '{'
    A (  ):
    ^
clang:
/home/regehr/z/compiler-source/llvm/tools/clang/lib/Sema/SemaInit.cpp:6890:
bool clang::InitializationSequence::Diagnose(clang::Sema &, const
clang::InitializedEntity &, const clang::InitializationKind &,
ArrayRef<clang::Expr *>): Assertion `Kind.getKind() ==
InitializationKind::IK_Value || DestType->isReferenceType()' failed.
#0 0x00000000025cbb08 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x25cbb08)
#1 0x00000000025ca2e6 llvm::sys::RunSignalHandlers()
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x25ca2e6)
#2 0x00000000025cc1fa
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x25cc1fa)
#3 0x00007f0b3703a340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x00007f0b35e1acc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f0b35e1e0d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f0b35e13b86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f0b35e13c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x0000000000ea347c clang::InitializationSequence::Diagnose(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::ArrayRef<clang::Expr*>)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xea347c)
#9 0x0000000000e9a2d3 clang::InitializationSequence::Perform(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, clang::QualType*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xe9a2d3)
#10 0x0000000000d23f76 clang::Sema::BuildBaseInitializer(clang::QualType,
clang::TypeSourceInfo*, clang::Expr*, clang::CXXRecordDecl*,
clang::SourceLocation)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xd23f76)
#11 0x0000000000d21c48 clang::Sema::BuildMemInitializer(clang::Decl*,
clang::Scope*, clang::CXXScopeSpec&, clang::IdentifierInfo*,
clang::OpaquePtr<clang::QualType>, clang::DeclSpec const&,
clang::SourceLocation, clang::Expr*, clang::SourceLocation)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xd21c48)
#12 0x0000000000d22bc7 clang::Sema::ActOnMemInitializer(clang::Decl*,
clang::Scope*, clang::CXXScopeSpec&, clang::IdentifierInfo*,
clang::OpaquePtr<clang::QualType>, clang::DeclSpec const&,
clang::SourceLocation, clang::SourceLocation, llvm::ArrayRef<clang::Expr*>,
clang::SourceLocation, clang::SourceLocation)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xd22bc7)
#13 0x0000000000b7f216 clang::Parser::ParseMemInitializer(clang::Decl*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb7f216)
#14 0x0000000000b7e7ab clang::Parser::ParseConstructorInitializer(clang::Decl*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb7e7ab)
#15 0x0000000000b4c453
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb4c453)
#16 0x0000000000b4b31a
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb4b31a)
#17 0x0000000000b77fb0
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb77fb0)
#18 0x0000000000b75b0e
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb75b0e)
#19 0x0000000000b57560
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb57560)
#20 0x0000000000b42870
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb42870)
#21 0x0000000000b4250a
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb4250a)
#22 0x0000000000b412ff
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb412ff)
#23 0x0000000000b40b7c
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb40b7c)
#24 0x0000000000b3c6e6 clang::ParseAST(clang::Sema&, bool, bool)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0xb3c6e6)
#25 0x00000000006d0f55 clang::FrontendAction::Execute()
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x6d0f55)
#26 0x000000000069cf71
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x69cf71)
#27 0x000000000067e5cb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x67e5cb)
#28 0x0000000000674c0a cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x674c0a)
#29 0x000000000067cd0f main
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x67cd0f)
#30 0x00007f0b35e05ec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#31 0x000000000067474c _start
(/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang+0x67474c)
Stack dump:
0.    Program arguments:
/home/regehr/z/compiler-install/llvm-r254595-install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.24
-dwarf-column-info -resource-dir
/home/regehr/z/compiler-install/llvm-r254595-install/bin/../lib/clang/3.8.0
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem /usr/local/include -internal-isystem
/home/regehr/z/compiler-install/llvm-r254595-install/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/home/regehr/svn/code/reduce/creduce_extra_498 -ferror-limit 19
-fmessage-length 110 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/hello-3d38d8.o -x c++
hello.cpp 
1.    hello.cpp:8:1: current parser token '{'
2.    hello.cpp:5:1: parsing struct/union/class body 'A'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 254595)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/regehr/z/compiler-install/llvm-r254595-install/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/hello-e8ef4c.cpp
clang: note: diagnostic msg: /tmp/hello-e8ef4c.sh
clang: note: diagnostic msg: 

********************
regehr@hawking:~/svn/code/reduce/creduce_extra_498$</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>