From: Marek Polacek Date: Tue, 8 Dec 2015 14:43:32 +0000 (+0000) Subject: re PR c++/68116 (ice in add_expr, at tree.c:7840) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5cec9c4ca8599353b737892dbea142c167c0e20;p=gcc.git re PR c++/68116 (ice in add_expr, at tree.c:7840) PR c++/68116 * g++.dg/cpp0x/pr68116.C: New test. From-SVN: r231412 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5df55854351..a236054585e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-12-08 Marek Polacek + + PR c++/68116 + * g++.dg/cpp0x/pr68116.C: New test. + 2015-12-08 Kirill Yukhin * 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 index 00000000000..04ed901ad40 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr68116.C @@ -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) +};