]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 2 May 2005 18:38:51 +0000 (18:38 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 2 May 2005 18:38:51 +0000 (18:38 +0000)
'gcc-3_4-branch'.

From-SVN: r99116

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

diff --git a/gcc/testsuite/g++.dg/template/ptrmem14.C b/gcc/testsuite/g++.dg/template/ptrmem14.C
new file mode 100644 (file)
index 0000000..30eb1eb
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/15875
+
+struct A
+{
+  void foo();
+};
+
+template<int> void bar()
+{
+  typedef void (A::*fptr)();
+  fptr ptr = &A::foo;
+}