https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110300

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-06-18
             Status|UNCONFIRMED                 |NEW
            Summary|Template disambiguator      |Template disambiguator
                   |accepted for non-template   |accepted for non-template
                   |function                    |function with the function
                   |                            |from a dependent base class
      Known to fail|                            |4.1.2
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced C++98 code:
```
template <int U>
struct Bar{
    void setNumber(int) {}
};

template <int N>
struct Asd : public Bar<N>{
    void doSomething();
};

template<int N>
void Asd<N>::doSomething() {
    this->template setNumber(N);
}

int main() {
    Asd<42> obj;
    obj.doSomething();
}

```

Confirmed. not a regression as far as I can tell.

Reply via email to