Skip to content

Assertion failure when instantiating member class of class template. #9287

@llvmbot

Description

@llvmbot
Bugzilla Link 8915
Resolution FIXED
Resolved on Jan 27, 2011 08:12
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

The following test (from the g++ test suite) causes a clang assertion to trigger.

template struct A {
struct B {
struct C {};
};
};

template void foo() {
class A::B::C X;
}

void bar() {
foo<0>();
}

clang: include/clang/AST/DeclTemplate.h:1283: void clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation): Assertion `Loc.isValid() && "point of instantiation must be valid!"' 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