https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119726
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Template Specialization of |Template Specialization of
|Inner class from Inherited |Inner class from Inherited
|template class fails with: |template class gives the
|" too few |wrong error with: " too few
|template-parameter-lists" |template-parameter-lists"
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed| |2025-04-11
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=39906,
| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=69903
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The specialization which works for both GCC and clang
```
template<>
template<>
struct A<B>::AA<int> {
..
};
```
So note clang should have rejected the specialization in comment #0 too; see PR
39906 and bug 69903.
So this moving this bug report to be about the incorrect diagnostic of the
invalid specialization . So confirmed.