re PR c++/48838 (valid template code does not compile)
authorDodji Seketeli <dodji@redhat.com>
Fri, 6 May 2011 08:34:53 +0000 (08:34 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 6 May 2011 08:34:53 +0000 (10:34 +0200)
commit73452ce79a0be60509fde8f6f2949aa84b0b7766
tree192cba8d3931d0c9f754675ae29696b4a8ad538e
parent155b61760df4ffe4a3dfcbd76da2f987241255b1
re PR c++/48838 (valid template code does not compile)

Fix PR c++/48838

gcc/cp

PR c++/48838
* cp-tree.h (non_static_member_function_p): Declare new function.
* tree.c (non_static_member_function_p): Define it.
* semantics.c (finish_call_expr): Use it.

gcc/testsuite

PR c++/48838
* g++.dg/template/member9.C: New test case.

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