Give #include hints for <complex>.
authorJason Merrill <jason@redhat.com>
Fri, 1 Dec 2017 20:19:13 +0000 (15:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Dec 2017 20:19:13 +0000 (15:19 -0500)
commitb3e862e09c0adb5dfaae2f538f19dc72948d040b
treee95e5b716f7e349919aac911eefe92c62bb4b81e
parentf2b8b8adbae9968ac30742498a21a92ac70523ff
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.

From-SVN: r255336
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]