typeck.c (decl_in_std_namespace_p): Return true also for decls in inline namespaces...
authorJakub Jelinek <jakub@redhat.com>
Wed, 30 Oct 2019 21:53:37 +0000 (22:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 30 Oct 2019 21:53:37 +0000 (22:53 +0100)
commit97ccc60e0c8590e22488e909464fc591eb8b0534
tree6d7895cc261bb7068a1a75e285b8cd06adf2cfdf
parente0d91792eec490d1bddb4a095a3da2c5b4c270e2
typeck.c (decl_in_std_namespace_p): Return true also for decls in inline namespaces inside of std namespace.

* typeck.c (decl_in_std_namespace_p): Return true also for decls
in inline namespaces inside of std namespace.

* g++.dg/cpp0x/Wpessimizing-move6.C: New test.

From-SVN: r277648
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move6.C [new file with mode: 0644]