Skip to content

Misleading diagnostic from ambiguous reference to class template #13765

@rjmccall

Description

@rjmccall
Bugzilla Link 13393
Version trunk
OS All
CC @DougGregor,@zygoloid

Extended Description

jeweloflife:clang$ cat /tmp/red.cpp

template <class T> class A;
namespace inner {
  template <class T> class A;
}
using namespace inner;

class B : A<B> {};

jeweloflife:clang$ clang /tmp/red.cpp

/tmp/red.cpp:7:11: error: unknown template name 'A'
class B : A<B> {};
          ^
1 error generated.

jeweloflife:clang$ cat << EOF > /dev/null

Obviously this diagnostic should say something about an ambiguous template reference, not an unknown one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions