[Bug c++/110092] Missing warning that internal header is used

2023-06-05 Thread piotrwn1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110092 --- Comment #5 from Piotr Nycz --- (In reply to Jonathan Wakely from comment #2) > (In reply to Piotr Nycz from comment #0) > > So, probably it is doable to add warning like: "bist/shared_ptr.h is an > > internal header file, included by other

[Bug c++/110092] Missing warning that internal header is used

2023-06-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110092 --- Comment #4 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #1) > This seems more like a bug in the IDE than in GCC. If you don't include the > header at all then GCC tells you the right header: > > sp.cc: In function ‘int

[Bug c++/110092] Missing warning that internal header is used

2023-06-02 Thread piotrwn1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110092 --- Comment #3 from Piotr Nycz --- (In reply to Jonathan Wakely from comment #2) > (In reply to Piotr Nycz from comment #0) > > So, probably it is doable to add warning like: "bist/shared_ptr.h is an > > internal header file, included by other

[Bug c++/110092] Missing warning that internal header is used

2023-06-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110092 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from

[Bug c++/110092] Missing warning that internal header is used

2023-06-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110092 --- Comment #1 from Jonathan Wakely --- This seems more like a bug in the IDE than in GCC. If you don't include the header at all then GCC tells you the right header: sp.cc: In function ‘int main()’: sp.cc:2:8: error: ‘shared_ptr’ is not a