https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94115
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Cédric Chépied from comment #0) > Created attachment 48005 [details] > Source and ii files > > When I create 2 classes with the same name in different cpp files You can't do that. Use namespaces, or give them different names. https://en.cppreference.com/w/cpp/language/definition https://en.wikipedia.org/wiki/One_Definition_Rule