https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116931
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ` const int_pointer const` is a duplicate const. because int_pointer is one identifier, the const could go before or after to mean the same thing. clang produces a warning rather than an error: <source>:3:37: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] But it is still invalid C++ code.