Re: [C++ PATCH] Add testcase for 4.8 bug

2016-06-15 Thread Jason Merrill
OK.

Jason


[C++ PATCH] Add testcase for 4.8 bug

2016-06-15 Thread Jakub Jelinek
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  

* 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.0 
+0200
@@ -0,0 +1,12 @@
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+  void foo () &;
+};
+
+void
+bar (__UINTPTR_TYPE__ a)
+{
+  reinterpret_cast(a)->foo ();
+}

Jakub