]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c++/68116
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Dec 2015 14:43:32 +0000 (14:43 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Dec 2015 14:43:32 +0000 (14:43 +0000)
* g++.dg/cpp0x/pr68116.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231412 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr68116.C [new file with mode: 0644]

index 5df558543514647d21d0bf82c9d01dfdd19b181d..a236054585e6928f06a4afc6a26776ed883542a0 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-08  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/68116
+       * g++.dg/cpp0x/pr68116.C: New test.
+
 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
 
        * gfortran.dg/pr68627.f: Use '!ia32' instead' of 'lp64' in target
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr68116.C b/gcc/testsuite/g++.dg/cpp0x/pr68116.C
new file mode 100644 (file)
index 0000000..04ed901
--- /dev/null
@@ -0,0 +1,12 @@
+// PR c++/68116
+// { dg-do compile { target c++11 } }
+
+class C {
+  void foo ();
+  typedef void (C::*T) (int);
+  static T b[];
+};
+C::T C::b[]
+{
+  T (&C::foo)
+};