https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52659
Mital Ashok <mital at mitalashok dot co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mital at mitalashok dot co.uk --- Comment #4 from Mital Ashok <mital at mitalashok dot co.uk> --- The fix only seems to apply to constructors, this is still present for member and free functions in gcc-15: ``` int f(); int g() { return f(); } int f() = delete; // deleted after first declaration int main() { return g(); } ``` Compiles with no error (-fsyntax-only), and a linker error for a missing f()