From: No Author Date: Sun, 6 Mar 2005 16:59:19 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch X-Git-Tag: releases/gcc-3.4.4~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f611e0f0b0a13fa8a3369c5b2d1e6288a81b4270;p=thirdparty%2Fgcc.git This commit was manufactured by cvs2svn to create branch 'gcc-3_4-branch'. From-SVN: r95974 --- diff --git a/gcc/testsuite/g++.dg/template/non-dependent11.C b/gcc/testsuite/g++.dg/template/non-dependent11.C new file mode 100644 index 000000000000..dff5b909d954 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/non-dependent11.C @@ -0,0 +1,18 @@ +// { dg-do compile } + +// Origin: Jakub Jelinek +// Wolfgang Bangerth + +// PR c++/19311: Non-dependent address to member as function argument. + +template void foo (R (T::*x) ()); +template void foo (R (T::*x) (C)); + +template struct I { + int o (); + int o () const; +}; + +template void bar (void) { + foo > (&I<1>::o); +}