[Bug c++/96207] GCC accepts "delete" function definition inside a function

2025-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96207 Andrew Pinski changed: What|Removed |Added CC||janschultke at googlemail dot com --- C

[Bug c++/96207] GCC accepts "delete" function definition inside a function

2025-01-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96207 --- Comment #3 from Andrew Pinski --- Does not need to be a member function/method. Just a function is enough.