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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:352811870d7d7edcca109ef50822e26ca7ef2b36

commit r10-7957-g352811870d7d7edcca109ef50822e26ca7ef2b36
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Apr 24 16:27:26 2020 -0400

    c++: implicit operator== with previous decl [PR94583]

    P2085 clarified that a defaulted comparison operator must be the first
    declaration of the function.  Rejecting that avoids the ICE trying to
    compare the noexcept-specifications.

    gcc/cp/ChangeLog
    2020-04-24  Jason Merrill  <ja...@redhat.com>

            PR c++/94583
            * decl.c (redeclaration_error_message): Reject defaulted comparison
            operator that has been previously declared.

Reply via email to