https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92986
--- Comment #2 from Geetesh More <geeteshmore at gmail dot com> --- But compiler should be throwing some message/warning about declaration of same class in multiple files. This is common scenario in cases where a class is copied in multiple files.