Skip to content

Accepts-invalid with dependent name not prefixed with typename #17283

Open
@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 16909
Version unspecified
OS Windows NT
CC @hyp,@benlangmuir,@DougGregor

Extended Description

Testcase:

template <typename,typename>
struct base {
  template <typename> struct derived;
};
template <typename T, typename U, typename V> base<T, U>::derived<V> foo();

We should print an error about the missing typename and template keywords.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]regression

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions