Re: [PATCH] c++: Strengthen checks on 'main'

2024-05-14 Thread Jason Merrill
On 5/11/24 08:32, Nathaniel Shead wrote: I wasn't entirely sure what to do with the 'abi/main.C' testcase here; is this OK, or should I e.g. lower the linkage error to a pedwarn for the purposes of this test? I think it should be a pedwarn anyway, since it's harmless. The others can still be

[PATCH] c++: Strengthen checks on 'main'

2024-05-11 Thread Nathaniel Shead
I wasn't entirely sure what to do with the 'abi/main.C' testcase here; is this OK, or should I e.g. lower the linkage error to a pedwarn for the purposes of this test? Bootstrapped and regtested on x86_64-pc-linux-gnu, and lightly checked with a MinGW32 cross. OK for trunk? -- >8 -- This patch