[Bug c++/68754] Explicitly defaulted constexpr assignment operator fails to compile

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 30 17:01:00 GMT 2017


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

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Sep 30 17:00:32 2017
New Revision: 253321

URL: https://gcc.gnu.org/viewcvs?rev=253321&root=gcc&view=rev
Log:
/cp
2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/68754
        * method.c (defaulted_late_check): Early return if the defaulted
        declaration does not match the expected signature.

/testsuite
2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/68754
        * g++.dg/cpp1y/constexpr-68754.C: Move...
        * g++.dg/cpp0x/constexpr-68754.C: ... here, adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-68754.C
      - copied, changed from r253320,
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C
Removed:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/method.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list