https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67592

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Dec 18 18:18:47 2015
New Revision: 231824

URL: https://gcc.gnu.org/viewcvs?rev=231824&root=gcc&view=rev
Log:
/cp
2015-12-18  Paolo Carlini  <paolo.carl...@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.carl...@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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/pr51463.C
    trunk/gcc/testsuite/g++.dg/inherit/pure1.C

Reply via email to