re PR c++/68116 (ice in add_expr, at tree.c:7840)
authorMarek Polacek <polacek@redhat.com>
Tue, 8 Dec 2015 14:43:32 +0000 (14:43 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 8 Dec 2015 14:43:32 +0000 (14:43 +0000)
PR c++/68116
* g++.dg/cpp0x/pr68116.C: New test.

From-SVN: r231412

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)
+};