Give #include hints for <complex>.
commitad453544fe215b31760564765d4746ca90255f82
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Dec 2017 20:19:13 +0000 (1 20:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Dec 2017 20:19:13 +0000 (1 20:19 +0000)
treee95e5b716f7e349919aac911eefe92c62bb4b81e
parentb05da963df77a57990c57b6d397d73d064a9c8fd
Give #include hints for <complex>.

* name-lookup.c (get_std_name_hint): Add <complex>.
* parser.c (cp_parser_diagnose_invalid_type_name): Call
suggest_alternative_in_explicit_scope.
(cp_parser_namespace_name): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255336 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/lookup/missing-std-include-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/missing-std-include-5.C [new file with mode: 0644]