[Bug c++/85269] warn for referenced standard symbols that aren't guaranteed to be declared in a header

2018-04-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85269 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/85269] warn for referenced standard symbols that aren't guaranteed to be declared in a header

2018-04-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85269 --- Comment #4 from Martin Sebor --- Your example in comment #2 should not warn. Projects often have their own "base" header that includes a a bunch of standard headers and that by convention is included in each of the project's source files so

[Bug c++/85269] warn for referenced standard symbols that aren't guaranteed to be declared in a header

2018-04-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85269 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #2) > Also, we'd need to be careful so that we don't warn about referring to > std::ostream without , because exists specifically to make > that possible. Also,

[Bug c++/85269] warn for referenced standard symbols that aren't guaranteed to be declared in a header

2018-04-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85269 --- Comment #2 from Jonathan Wakely --- Could you clarify the suggestion? Should your first example warn because std::locale is only declared not defined? What if we later modify so it does include the whole of , would that stop the warning? The

[Bug c++/85269] warn for referenced standard symbols that aren't guaranteed to be declared in a header

2018-04-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85269 --- Comment #1 from Martin Sebor --- LWG issues 343 has some bakckground into this problem: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#343 It was resolved via LWG #1178 without solving the portability problem: http://www.open-s