// PR c++/94885 - paren-init of aggregates accepts invalid code. // { dg-do compile { target c++20 } } template // { dg-error "could not convert" } void foo(); struct base {}; struct derived : base {}; void bar() { foo(); // { dg-error "no matching function" } }