[Bug c++/72507] incorrectly accepts invalid C++11 code that tries to allocate an incomplete type
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 27 23:42:14 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72507
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2016-07-26 00:00:00 |2021-7-27
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like we are not instantiating A<int>::t unless you use it directly.
That is if we add:
int r = A<int>::t;
The program is rejected as expected.
More information about the Gcc-bugs
mailing list