[Bug c++/91436] Confusing suggestion to include <memory>
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 14 19:53:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91436
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Aug 14 19:52:58 2019
New Revision: 274492
URL: https://gcc.gnu.org/viewcvs?rev=274492&root=gcc&view=rev
Log:
PR c++/91436 fix C++ dialect for std::make_unique fix-it hint
The std::make_unique function wasn't added until C++14, and neither was
the std::complex_literals namespace.
gcc/cp:
PR c++/91436
* name-lookup.c (get_std_name_hint): Fix min_dialect field for
complex_literals and make_unique entries.
gcc/testsuite:
PR c++/91436
* g++.dg/lookup/missing-std-include-5.C: Limit test to C++14 and up.
* g++.dg/lookup/missing-std-include-6.C: Don't check make_unique in
test that runs for C++11.
* g++.dg/lookup/missing-std-include-8.C: Check make_unique here.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/lookup/missing-std-include-5.C
trunk/gcc/testsuite/g++.dg/lookup/missing-std-include-6.C
trunk/gcc/testsuite/g++.dg/lookup/missing-std-include-8.C
More information about the Gcc-bugs
mailing list