https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111647
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2023-10-02 Ever confirmed|0 |1 --- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- We probably want to diagnose this regardless of -fchecking. Here's a similar IFNDR example that we don't diagnose even with -fchecking=2. struct A { }; void g(A); template<class T> void f() { g(A(42)); }