https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101106
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-06-17 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The note is attached to a pedantic warning, which is not emitted by default. With -Wpedantic you get: del.C:2:9: warning: deleted definition of ‘int f()’ is not first declaration [-Wpedantic] 2 | int f() = delete; | ^ del.C:1:9: note: previous declaration of ‘int f()’ 1 | int f(); | ^ The note should only be printed when the pedwarn was printed.