Re: [PATCH v2 4/6] c++/modules: Check linkage for exported declarations

2024-09-27 Thread Jason Merrill
On 9/27/24 1:59 AM, Nathaniel Shead wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu and aarch64-unknown-linux-gnu, OK for trunk? -- >8 -- By [module.interface] p3, if an exported declaration is not within a header unit, it shall not declare a name with internal linkage. Unfortunately

[PATCH v2 4/6] c++/modules: Check linkage for exported declarations

2024-09-26 Thread Nathaniel Shead
Bootstrapped and regtested on x86_64-pc-linux-gnu and aarch64-unknown-linux-gnu, OK for trunk? -- >8 -- By [module.interface] p3, if an exported declaration is not within a header unit, it shall not declare a name with internal linkage. Unfortunately we cannot just do this within set_originating