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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #4)
> This is the fix, thought I recall it broke something. 

That was constexpr-ex4.C:

constexpr-ex4.C:13:11: error: no matching function for call to ‘A::operator
int(const A*)’
   13 |   int ar[a];
      |           ^
constexpr-ex4.C:6:13: note: candidate: ‘constexpr A::operator int() const’
    6 |   constexpr operator int() const { return 1; };
      |             ^~~~~~~~
constexpr-ex4.C:6:13: note:   candidate expects 0 arguments, 1 provided

Reply via email to