This testcase used to ICE, but compiles fine since the C++ delayed folding merge. I'd like to add it to the testsuite and close the PR.
Tested on x86_64-linux, ok for trunk? 2015-12-07 Marek Polacek <[email protected]> PR c++/68116 * g++.dg/cpp0x/pr68116.C: New test. diff --git gcc/testsuite/g++.dg/cpp0x/pr68116.C gcc/testsuite/g++.dg/cpp0x/pr68116.C index e69de29..04ed901 100644 --- gcc/testsuite/g++.dg/cpp0x/pr68116.C +++ 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) +}; Marek
