re PR c++/11788 (missing implicit instantiation of static member function)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 11 Sep 2003 15:18:52 +0000 (15:18 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 11 Sep 2003 15:18:52 +0000 (15:18 +0000)
commit92af500d3e3f3ae08792a6e4446356321ec3ae65
treeb14f1b554715b424610a1a525deb66ce4aeb3b23
parent9bdca184d65ece8fb958b736d092e65a72f114d0
re PR c++/11788 (missing implicit instantiation of static member function)

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.

From-SVN: r71304
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]