re PR c++/65579 ([C++11] gcc requires definition of a static constexpr member even...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 6 Nov 2017 17:45:55 +0000 (17:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 6 Nov 2017 17:45:55 +0000 (17:45 +0000)
commit65371a7eddd37f9d5d15790486296cb441cabb40
tree5ddd98710b5dd3186f8f660b2a84f275c1ab389d
parentd3722bf7325e1cf63215d69fda8d0667e4bb0321
re PR c++/65579 ([C++11] gcc requires definition of a static constexpr member even though it is not odr-used)

/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.

From-SVN: r254461
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-template11.C [new file with mode: 0644]