]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sun, 6 Mar 2005 16:59:19 +0000 (16:59 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sun, 6 Mar 2005 16:59:19 +0000 (16:59 +0000)
'gcc-3_4-branch'.

From-SVN: r95974

gcc/testsuite/g++.dg/template/non-dependent11.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/template/non-dependent11.C b/gcc/testsuite/g++.dg/template/non-dependent11.C
new file mode 100644 (file)
index 0000000..dff5b90
--- /dev/null
@@ -0,0 +1,18 @@
+// { dg-do compile }
+
+// Origin: Jakub Jelinek <jakub@gcc.gnu.org>
+//        Wolfgang Bangerth <bangerth@ticam.utexas.edu>
+
+// PR c++/19311: Non-dependent address to member as function argument.
+
+template <class R, class T>          void foo (R (T::*x) ()); 
+template <class R, class T, class C> void foo (R (T::*x) (C)); 
+template<int> struct I { 
+  int o (); 
+  int o () const; 
+}; 
+template <int> void bar (void) { 
+  foo <int, I<1> > (&I<1>::o); 
+}