https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91436

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Aug 14 20:10:00 2019
New Revision: 274493

URL: https://gcc.gnu.org/viewcvs?rev=274493&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:
    branches/gcc-9-branch/gcc/cp/ChangeLog
    branches/gcc-9-branch/gcc/cp/name-lookup.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog
    branches/gcc-9-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-5.C
    branches/gcc-9-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-6.C
    branches/gcc-9-branch/gcc/testsuite/g++.dg/lookup/missing-std-include-8.C

Reply via email to