https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91436
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Thu Aug 15 11:35:58 2019 New Revision: 274530 URL: https://gcc.gnu.org/viewcvs?rev=274530&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. Backport from mainline. 2019-08-14 Jonathan Wakely <jwak...@redhat.com> 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: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/name-lookup.c branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-5.C branches/gcc-8-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-6.C branches/gcc-8-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-8.C