Skip to content

[clang] Clang 19 regression "no member named" in templated class method #102177

@vient

Description

@vient
template<class C>
class A {
  void call_f() {
      this->f();
  }
};

Compiles with Clang 18 but gives error: no member named 'f' in 'A<C>' with Clang 19 https://godbolt.org/z/vzjYf6Kxd

Caught while trying to compile code using simdjson

.conan2/p/simdjfa4aaa94b0935/p/include/simdjson.h:6101:13: error: no member named 'print_newline' in 'base_formatter<formatter>'
 6101 |       this->print_newline();
      |       ~~~~  ^

https://github.com/simdjson/simdjson/blob/v3.2.3/include/simdjson/dom/serialization.h#L59-L61

Metadata

Metadata

Assignees

No one assigned

    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