https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116967
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.1.0 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-10-04 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Looks like we just merge it and don't have any diagnostic. DECL_DECLARED_CONSTINIT_P (newdecl) |= DECL_DECLARED_CONSTINIT_P (olddecl); Shouldn't be too hard to add the required diagnostic to duplicate_decls I think.