https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98885
--- Comment #2 from Pilar Latiesa <pilarlatiesa at gmail dot com> --- (In reply to Nathan Sidwell from comment #1) > This is ill-formed. an exported entity must be so-declared on its first > declaration. > > A diagnostic is missing on the definition of the class. I see. Thanks. What about the second testcase? How a pattern like that is supposed to be modularized?