]> 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, 4 Apr 2005 23:43:54 +0000 (23:43 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 4 Apr 2005 23:43:54 +0000 (23:43 +0000)
'gcc-3_4-branch'.

From-SVN: r97583

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

diff --git a/gcc/testsuite/g++.dg/template/overload4.C b/gcc/testsuite/g++.dg/template/overload4.C
new file mode 100644 (file)
index 0000000..1a294eb
--- /dev/null
@@ -0,0 +1,20 @@
+// PR c++/20679
+
+template <class T>
+struct foo
+{
+  struct bar
+  {
+    int m;
+  };
+
+  void m() const {}
+  void m() {}
+  
+  bool n() const { return b->m < 42; }
+
+  bar *b;
+};
+
+
+