[Bug c++/65579] [C++11] gcc requires definition of a static constexpr member even though it is not odr-used
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 6 17:46:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65579
--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Nov 6 17:45:55 2017
New Revision: 254461
URL: https://gcc.gnu.org/viewcvs?rev=254461&root=gcc&view=rev
Log:
/cp
2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65579
* decl2.c (finish_static_data_member_decl): If there's an initializer,
complete the type and re-apply the quals.
/testsuite
2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65579
* g++.dg/cpp0x/constexpr-template11.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-template11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list