Skip to content

clang c++ crash with destructor and template specialization #5028

Closed
@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 4656
Resolution FIXED
Resolved on Feb 22, 2010 12:48
Version unspecified
OS Linux
CC @DougGregor

Extended Description

Testcase:
struct A { ~A(); };
template struct B {};
template <> struct B : private A {};
B foo;

Crashes with the following assertion:
clang-cc: /home/eli/llvm/tools/clang/lib/AST/DeclarationName.cpp:306: clang::DeclarationName clang::DeclarationNameTable::getCXXSpecialName(clang::DeclarationName::NameKind, clang::QualType): Assertion `Ty->isCanonical() && "Can only build C++ special names from canonical types"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions