re PR c++/48593 (Wrong return type when applying address operator to inherited, templ...
authorJason Merrill <jason@redhat.com>
Fri, 1 Jul 2011 20:24:25 +0000 (16:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Jul 2011 20:24:25 +0000 (16:24 -0400)
commitd816a3ba71e05342e7ddbf9c0a7b0bb67d05dc12
treed1ea8adbb7a89330a40f22b4d90fd74b7d2be45b
parenta771bf1cf6a6d6f785f5b6f714e9d732ccfcc757
re PR c++/48593 (Wrong return type when applying address operator to inherited, template dependend member, using a typedef)

PR c++/48593
* pt.c (tsubst_qualified_id): Check PTRMEM_OK_P.
* tree.c (build_qualified_name): Set PTRMEM_OK_P.
* semantics.c (finish_parenthesized_expr): Clear PTRMEM_OK_P on
SCOPE_REF, too.
* cp-tree.h (PTRMEM_OK_P): Apply to SCOPE_REF, too.
(QUALIFIED_NAME_IS_TEMPLATE): Switch to lang flag 1.

From-SVN: r175765
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/qualified-id4.C [new file with mode: 0644]