<html>
<head>
<base href="https://bugs.llvm.org/">
</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 `(!needsOverloadResolutionForDestructor() || (data().DeclaredSpecialMembers & SMF_Destructor)) && "this property has not yet been computed by Sema"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=47318">47318</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `(!needsOverloadResolutionForDestructor() || (data().DeclaredSpecialMembers & SMF_Destructor)) && "this property has not yet been computed by Sema"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hokein@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>reproduce code:
class Base {
public:
~Base();
};
class Derived : public Base {
public:
~Derived(int);
};
stacktrace:
clang: /llvm-project/clang/include/clang/AST/DeclCXX.h:697: bool
clang::CXXRecordDecl::defaultedDestructorIsDeleted() const: Assertion
`(!needsOverloadResolutionForDestructor() || (data().DeclaredSpecialMembers &
SMF_Destructor)) && "this property has not yet been computed by Sema"' failed.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: ./bin/clang -cc1 -ast-dump /tmp/t5.cpp
1. /tmp/t5.cpp:12:2: current parser token ';'
2. /tmp/t5.cpp:9:1: parsing struct/union/class body 'Derived'
#0 0x0000000004475c4a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
/llvm-project/llvm/lib/Support/Unix/Signals.inc:563:11
#1 0x0000000004475dfb PrintStackTraceSignalHandler(void*)
/llvm-project/llvm/lib/Support/Unix/Signals.inc:627:1
#2 0x00000000044745db llvm::sys::RunSignalHandlers()
/llvm-project/llvm/lib/Support/Signals.cpp:69:5
#3 0x000000000447654d SignalHandler(int)
/llvm-project/llvm/lib/Support/Unix/Signals.inc:405:1
#4 0x00007f0e5eb7b110 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x14110)
#5 0x00007f0e5d0f6761 raise
/build/glibc-M65Gwz/glibc-2.30/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#6 0x00007f0e5d0e055b abort /build/glibc-M65Gwz/glibc-2.30/stdlib/abort.c:81:7
#7 0x00007f0e5d0e042f get_sysdep_segment_value
/build/glibc-M65Gwz/glibc-2.30/intl/loadmsgcat.c:509:8
#8 0x00007f0e5d0e042f _nl_load_domain
/build/glibc-M65Gwz/glibc-2.30/intl/loadmsgcat.c:970:34
#9 0x00007f0e5d0ef092 (/lib/x86_64-linux-gnu/libc.so.6+0x34092)
#10 0x0000000007f0b3c1 clang::CXXRecordDecl::defaultedDestructorIsDeleted()
const /llvm-project/clang/include/clang/AST/DeclCXX.h:0:5
#11 0x0000000007e3c7cf canPassInRegisters(clang::Sema&, clang::CXXRecordDecl*,
clang::TargetInfo::CallingConvKind)
/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:6466:74
#12 0x0000000007e3b2c6 clang::Sema::CheckCompletedCXXClass(clang::Scope*,
clang::CXXRecordDecl*) /llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:6807:8
#13 0x0000000007e446f7
clang::Sema::ActOnFinishCXXMemberSpecification(clang::Scope*,
clang::SourceLocation, clang::Decl*, clang::SourceLocation,
clang::SourceLocation, clang::ParsedAttributesView const&)
/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp:9815:1
#14 0x0000000007a1c5a6
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) /llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3369:7
#15 0x0000000007a1ac0d
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&)
/llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:1962:7
#16 0x00000000079f4402
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*)
/llvm-project/clang/lib/Parse/ParseDecl.cpp:3839:12
#17 0x00000000079ced4d
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
/llvm-project/clang/lib/Parse/Parser.cpp:1011:7
#18 0x00000000079ce920
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
/llvm-project/clang/lib/Parse/Parser.cpp:1116:12
#19 0x00000000079ce1b3
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) /llvm-project/clang/lib/Parse/Parser.cpp:936:12
#20 0x00000000079cc475
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
/llvm-project/clang/lib/Parse/Parser.cpp:684:12</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>