Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Jonathan Wakely via Gcc-patches
00:00 2001 > > From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= > > Date: Wed, 8 Mar 2023 17:01:24 +0100 > > Subject: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions > > > > This test detects redefinitions by compiling stdc++.h with > > -Wsystem-headers.

Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Arsen Arsenović via Gcc-patches
24 +0100 > Subject: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions > > This test detects redefinitions by compiling stdc++.h with > -Wsystem-headers. Thanks Patrick Palka for the suggestion. > > libstdc++-v3/ChangeLog: > > * testsuite/17_intro/versionconflict.cc

Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Arsen Arsenović via Gcc-patches
_GLIBCXX_TESTING_SYSHDR > #pragma GCC system_header > +#endif >#include > Then the test could define that macro instead of using -Wsystem-headers. > > Could you see if that works? Good idea. Both the positive and negative cases work when implemented like this: From 98d30

Re: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-05 Thread Jonathan Wakely via Gcc-patches
On 05/04/23 01:09 +0200, Arsen Arsenović wrote: This test detects redefinitions by compiling stdc++.h with -Wsystem-headers. Thanks Patrick Palka for the suggestion. libstdc++-v3/ChangeLog: * testsuite/17_intro/versionconflict.cc: New test. --- libstdc++-v3/testsuite/17_intro/versionco

[PATCH 2/4] libstdc++: Add a test for FTM redefinitions

2023-04-04 Thread Arsen Arsenović via Gcc-patches
This test detects redefinitions by compiling stdc++.h with -Wsystem-headers. Thanks Patrick Palka for the suggestion. libstdc++-v3/ChangeLog: * testsuite/17_intro/versionconflict.cc: New test. --- libstdc++-v3/testsuite/17_intro/versionconflict.cc | 6 ++ 1 file changed, 6 insertion