[Bug c++/59284] missing diagnostic on incomplete type at the point of template definition

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 18 19:25:00 GMT 2017


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-02-18
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Not a bug, because "no diagnostic is required".

A diagnostic is only required if the function template is instantiated, and we
do that.

G++ has been getting stricter about diagnosing errors with non-dependent names
and types in uninstantiated templates, so confirming as an enhancement request.


More information about the Gcc-bugs mailing list