static2.C: invocation of static data member of type pointer-to-function denoted as...
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 15 Sep 1998 17:05:28 +0000 (17:05 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Tue, 15 Sep 1998 17:05:28 +0000 (17:05 +0000)
* g++.old-deja/g++.other/static2.C: invocation of static data
  member of type pointer-to-function denoted as non-static member

From-SVN: r22434

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/static2.C [new file with mode: 0644]

index 8ffcdab24117a1d491e6be59adcf35d56dd49cc4..9f8429d874e307a7069d0a891414d19283f426eb 100644 (file)
@@ -1,5 +1,8 @@
 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.other/static2.C: invocation of static data
+       member of type pointer-to-function denoted as non-static member
+
        * g++.old-deja/g++.other/typedef5.C: add some more tests involving 
        checks involving function types and aliases
 
diff --git a/gcc/testsuite/g++.old-deja/g++.other/static2.C b/gcc/testsuite/g++.old-deja/g++.other/static2.C
new file mode 100644 (file)
index 0000000..471448d
--- /dev/null
@@ -0,0 +1,10 @@
+// Build don't link:
+// Based on a test case by Koos Vriezen <koos@polder.ubc.kun.nl>
+
+struct foo {
+    static void (*mystatic) ();
+};
+
+void bar(foo& t) {
+    t.mystatic ();
+}