Hi! The following testcase ICEs on the 4.8 branch, starting with r198314, but works in 4.9+.
Is the testcase ok for trunk? Tested on x86_64-linux and i686-linux. 2016-06-15 Jakub Jelinek <ja...@redhat.com> * g++.dg/cpp0x/ref-qual17.C: New test. --- gcc/testsuite/g++.dg/cpp0x/ref-qual17.C.jj 2016-06-15 11:07:11.454070330 +0200 +++ gcc/testsuite/g++.dg/cpp0x/ref-qual17.C 2016-06-15 11:07:02.000000000 +0200 @@ -0,0 +1,12 @@ +// { dg-do compile { target c++11 } } + +struct A +{ + void foo () &; +}; + +void +bar (__UINTPTR_TYPE__ a) +{ + reinterpret_cast<A *>(a)->foo (); +} Jakub