[Bug c++/48838] [4.6/4.7 Regression] valid template code does not compile
dodji at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 6 09:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48838
--- Comment #5 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-05-06 08:34:18 UTC ---
Author: dodji
Date: Fri May 6 08:34:10 2011
New Revision: 173472
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173472
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/member9.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/cp-tree.h
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/cp/tree.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list