[LLVMbugs] [Bug 10243] New: [C++] aborts during compilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 1 13:21:09 PDT 2011


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

           Summary: [C++] aborts during compilation
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=6808)
 --> (http://llvm.org/bugs/attachment.cgi?id=6808)
xz-compressed output of -save-temps

video/opengl.cpp from SLIMPlayer[1] fails to compile.

pipping at bogus /home/pipping/debug % clang++ -x c++ -c opengl.ii.ok       
opengl.ii.ok:3:17: error: field has incomplete type 'exception_ptr'
  exception_ptr _M_ptr;
                ^
opengl.ii.ok:1:7: note: forward declaration of 'exception_ptr'
class exception_ptr;
      ^
opengl.ii.ok:4:47: warning: defaulted function definition accepted as a C++0x
extension [-Wc++0x-extensions]
  nested_exception(const nested_exception&) = default;
                                              ^
clang: SemaLookup.cpp:2151: Sema::SpecialMemberOverloadResult
*clang::Sema::LookupSpecialMember(clang::CXXRecordDecl *,
clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool): Assertion `(RD &&
!RD->isBeingDefined()) && "doing special member lookup into record that isn't
fully complete"' failed.
0  libLLVM-3.0svn.so 0x00007fc4327ff78f
1  libLLVM-3.0svn.so 0x00007fc4327ffb81
2  libpthread.so.0   0x00007fc4317daff0
3  libc.so.6         0x00007fc430af8605 gsignal + 53
4  libc.so.6         0x00007fc430af9905 abort + 389
5  libc.so.6         0x00007fc430af1235 __assert_fail + 245
6  clang             0x0000000000dbf5f2
clang::Sema::LookupSpecialMember(clang::CXXRecordDecl*,
clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool) + 2226
7  clang             0x0000000000dbf6f0
clang::Sema::LookupCopyingConstructor(clang::CXXRecordDecl*, unsigned int,
bool*) + 64
8  clang             0x0000000000d3b552
clang::Sema::ComputeDefaultedCopyCtorExceptionSpecAndConst(clang::CXXRecordDecl*)
+ 578
9  clang             0x0000000000d39ff5
clang::Sema::CheckExplicitlyDefaultedCopyConstructor(clang::CXXConstructorDecl*)
+ 245
10 clang             0x0000000000d398d3
clang::Sema::CheckExplicitlyDefaultedMethods(clang::CXXRecordDecl*) + 323
11 clang             0x0000000000d38a4a
clang::Sema::CheckCompletedCXXClass(clang::CXXRecordDecl*) + 1322
12 clang             0x0000000000d3cdbe
clang::Sema::ActOnFinishCXXMemberSpecification(clang::Scope*,
clang::SourceLocation, clang::Decl*, clang::SourceLocation,
clang::SourceLocation, clang::AttributeList*) + 190
13 clang             0x0000000000ca1ed2
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1442
14 clang             0x0000000000ca1545
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4965
15 clang             0x0000000000c953f1
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2225
16 clang             0x0000000000c8c3b9
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 57
17 clang             0x0000000000c8c5fd
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 61
18 clang             0x0000000000c8bf62
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1426
19 clang             0x0000000000c8b9a4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 212
20 clang             0x0000000000c7505f clang::ParseAST(clang::Sema&, bool) +
303
21 clang             0x0000000000b734df clang::CodeGenAction::ExecuteAction() +
623
22 clang             0x0000000000a968b7 clang::FrontendAction::Execute() + 231
23 clang             0x0000000000a842ea
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 506
24 clang             0x0000000000a4fef0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 640
25 clang             0x0000000000a460d7 cc1_main(char const**, char const**,
char const*, void*) + 647
26 clang             0x0000000000a4c680 main + 368
27 libc.so.6         0x00007fc430ae4c7d __libc_start_main + 253
28 clang             0x0000000000a45d89
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name opengl.ii.ok
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21
-momit-leaf-frame-pointer -coverage-file opengl.ii.o -resource-dir
/usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length
118 -fgnu-runtime -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o opengl.ii.o -x c++ opengl.ii.ok 
1.      <eof> parser at end of file
2.      opengl.ii.ok:2:1: parsing struct/union/class body 'nested_exception'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
pipping at bogus /home/pipping/debug % 


clang version 3.0, git-35ee32e800145a535f2676898f8f06f7ae6e9b43

[1] https://github.com/Themaister/SLIMPlayer

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