P0704R1 - fixing const-qualified pointers to members
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Oct 2017 15:43:17 +0000 (17:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Oct 2017 15:43:17 +0000 (17:43 +0200)
commit681f18d19b56527329fc80e5fdb8ef534978f705
tree71e727a3bf21f1fd4ae970fa2bd0c7eb48d4158b
parent9bc3f4206615c69934344ea3681f9446bdc1a1f5
P0704R1 - fixing const-qualified pointers to members

P0704R1 - fixing const-qualified pointers to members
* typeck2.c (build_m_component_ref): For -std=c++2a allow
pointer to const & qualified method on rvalue.

* g++.dg/cpp2a/ptrmem1.C: New test.

From-SVN: r253494
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/ptrmem1.C [new file with mode: 0644]