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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-07-03
      Known to fail|                            |8.1.0, 9.3.0
           Keywords|                            |ice-on-invalid-code
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

In GCC 7, GCC didn't crash (with -std=c++17 -fconcepts) but gave a wrong error
message:
<source>:11:24: error: no match for call to '(A<false>) (int)'
    int j = A<false>{}(0); // Crash
                        ^
<source>:11:24: note: candidate: int (*)(int) <conversion>
<source>:11:24: note:   candidate expects 1 argument, 2 provided

The crash started in GCC 8.

Reply via email to