cp-tree.h (PTRMEM_OK_P): New macro.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 18 Aug 2000 09:31:11 +0000 (09:31 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 18 Aug 2000 09:31:11 +0000 (09:31 +0000)
commit19420d00dce75db81a29e665a427808ef16d114b
treeb24281de984b1e9b0eb24d983437a18b4ee38340
parentc34911732455bc99d88661e9b4cd287fc4b0cc07
cp-tree.h (PTRMEM_OK_P): New macro.

* cp-tree.h (PTRMEM_OK_P): New macro.
(itf_ptrmem_ok): New enumeration value.
* class.c (resolve_address_of_overloaded_function): Add PTRMEM
argument. Diagnose implicit pointer to member.
(instantiate_type): Don't diagnose implicit pointer to member
here. Pass itf_ptrmem_ok if ok. Adjust calls to
resolve_address_of_overloaded_function.
* init.c (build_offset_ref): Set PTRMEM_OK_P.
(resolve_offset_ref): Don't diagnose implicit pointer to member here.
* semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here.
* typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P.
(build_unary_op): Deal with single non-static member in
microsoft-land.

From-SVN: r35777
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/semantics.c
gcc/cp/typeck.c