[Bug c++/83796] Abstract classes allowed to be instantiated when initialised as default parameter to function or constructor
johnsonmichaelgraham at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 12 08:47:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83796
Michael Johnson <johnsonmichaelgraham at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|5.4.0 |7.2.0
--- Comment #1 from Michael Johnson <johnsonmichaelgraham at gmail dot com> ---
Correctly won't compile on MSVC and Clang, erroneously compiles from gcc 4.7.3
onwards
Godbolt: https://godbolt.org/g/EuR2cy
I think may be caused by change:
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cp/call.c?r1=194820&r2=194819&pathrev=194820&diff_format=f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54325
More information about the Gcc-bugs
mailing list