https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70952
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |--- --- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> --- No, it's not a dup? Invalid octal literals outside of strings are already properly diagnosed, so the other bug talks about warning about them _as a matter of style_. This bug is about confusing use of octal literals in string constants. Compare: char c=008; error: invalid digit "8" in octal constant char c[]="\008"; [silently accepted with -Wall -Wextra, emits a string literal of size 3]