re PR c++/67592 (A virtual member function declared constexpr fails to trigger a...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 18 Dec 2015 18:18:47 +0000 (18:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 18 Dec 2015 18:18:47 +0000 (18:18 +0000)
commit38b69a9c114619088740f49cac9a41410fa668c7
tree8752d688bcc94cfc7ab38eefb8f276adaceb03af
parentfeac22a7825a7f8d385b1a2c2558d2bb4089548c
re PR c++/67592 (A virtual member function declared constexpr fails to trigger a diagnostic)

/cp
2015-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67592
* decl.c (grokdeclarator): Reject constexpr virtual member functions;
in error messages, prefer %<virtual%> and %<constexpr%> to virtual
and constexpr, respectively.

/testsuite
2015-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67592
* g++.dg/cpp0x/constexpr-virtual5.C: New.
* g++.dg/cpp0x/pr51463.C: Adjust dg-error string.
* g++.dg/inherit/pure1.C: Likewise.

From-SVN: r231824
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr51463.C
gcc/testsuite/g++.dg/inherit/pure1.C