Skip to content

Code completion does not work for member of alias template with dependent argument #130468

Closed
@HighCommander4

Description

@HighCommander4

In the following testcase:

template <typename T>
struct S {
  int a;
};

template <typename T> using Alias = S<T>;

template <typename T>
void f(Alias<T> s) {
  s.^
}

Code completion at the ^ does not offer the member a but should.

(I noticed this while writing this testcase. The seemingly more complicated member-of-a-member scenario works, but this simpler scenario does not.)

Metadata

Metadata

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions