re PR c++/65977 (Constexpr should be allowed in declaration of friend template specia...
commit71506d4107f7cf3eef78bb9fa9743b7765e43fd9
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 29 Jun 2015 22:02:08 +0000 (29 22:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 29 Jun 2015 22:02:08 +0000 (29 22:02 +0000)
tree5ace469b20bf63e5cea574c3b8fbc3b4c957673d
parent9b552079a19f94b589458f8bdc62a15a27523748
re PR c++/65977 (Constexpr should be allowed in declaration of friend template specialization)

/cp
2015-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65977
* decl.c (grokfndecl): Allow constexpr declarations of friend
template specializations.

/testsuite
2015-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65977
* g++.dg/cpp0x/constexpr-friend-3.C: New.
* g++.dg/cpp0x/constexpr-friend-2.C: Adjust.

From-SVN: r225148
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-friend-2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-friend-3.C [new file with mode: 0644]