This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ok to backport r210653 (fix for PR58930) to gcc-4_9-branch?


Hi,

On 07/01/2014 08:49 PM, Paul Pluzhnikov wrote:
Index: gcc/testsuite/g++.dg/cpp0x/nsdmi-template11.C
===================================================================
--- gcc/testsuite/g++.dg/cpp0x/nsdmi-template11.C	(revision 0)
+++ gcc/testsuite/g++.dg/cpp0x/nsdmi-template11.C	(revision 212207)
@@ -0,0 +1,30 @@
+// PR c++/58930
+// { dg-do compile { target c++11 } }
+
+struct SampleModule
+{
+  explicit SampleModule (int);
+};
+
+template < typename >
+struct BaseHandler
+{
+  SampleModule module_ { 0 };
+};
+
+BaseHandler<int> a;
+// PR c++/58930
+// { dg-do compile { target c++11 } }
+
+struct SampleModule
+{
+  explicit SampleModule (int);
+};
+
+template < typename >
+struct BaseHandler
+{
+  SampleModule module_ { 0 };
+};
+
+BaseHandler<int> a;
If this is what you actually committed, something went wrong with the testcases...

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]