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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
A distilled test that ICEs with the patch:

struct X {
  virtual void f();
};
struct Z : X {};
constexpr auto x = sizeof((X(Z())));


s.C:5:33: internal compiler error: in build_over_call, at cp/call.cc:9987
    5 | constexpr auto x = sizeof((X(Z())));
      |                                 ^
0xb54c2a build_over_call
        /home/mpolacek/src/gcc/gcc/cp/call.cc:9987

Reply via email to