https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104221

--- Comment #3 from Frank B. Brokken <f.b.brokken at rug dot nl> ---
Hi Nathaniel

You replied in your 2024-01-04 05:03:10 UTC posting:

> I think this is IFNDR; you cannot have more than one partition with the same
> name. 

Maybe I overlook something, but AFAICS it's not about defining more than one
partition with the same name. The point of my report is that -at least to me-
it's peculiar that a partition defining a class apparently requires all member
functions of that class to be defined in the partition's module file. 

If that's really required then that can easily result in source files
containing the implementations of many member functions, complicating
maintenance. 

There appears to be some inconsistency: in non-module situations there's no
problem implementing class members in their own source files, and in my
bug-report I also showed that a function declared in a partition, but not as a
member function of a class which is declared in the partition can painlessly be
compiled.

So OK if that's the way it is, but it would also be a somewhat unpleasant
consequence of using partitions. Maybe you can clarify or reopen the bug
report?

Kind regards,

Frank B. Brokken

Reply via email to