cp:
commite608f30c036580bf9db981a9ef2cd61a7733a4d0
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 2003 15:18:52 +0000 (11 15:18 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 2003 15:18:52 +0000 (11 15:18 +0000)
treeb14f1b554715b424610a1a525deb66ce4aeb3b23
parentb1682481b9026f000bb7f992b548651b2973daca
cp:
PR c++/11788
* typeck.c (build_address): If it is a function, mark it used.
(build_unary_op): Do not lose object's side-effects when taking
address of static member function.
* class.c (resolve_address_of_overloaded_function): Use
tsubst_flags_t parameter. Only expect overload sets. Adjust.
(instantiate_type): Adjust flags passing. Do not lose object's
side-effects when taking address of static member function.
testsuite:
PR c++/11788
* g++.dg/overload/addr1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71304 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/addr1.C [new file with mode: 0644]