https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125447
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC accepts invalid |GCC accepts invalid
|override in a class |override in a class
|template with non-dependent |template with non-dependent
|bases |bases at definition time
Status|UNCONFIRMED |RESOLVED
Severity|normal |enhancement
Resolution|--- |DUPLICATE
Keywords|accepts-invalid |diagnostic
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Actually GCC does reject the testcase in comment #0, but that is because you
instantiate the template. Without `Foo<int> x;` GCC accepts it BUT that is just
a QoI issue of accepting this at definition time rather than instantiation
time.
Oh this is a dup of bug 123919.
*** This bug has been marked as a duplicate of bug 123919 ***