From: Paolo Carlini Date: Fri, 10 Jul 2015 14:44:43 +0000 (+0000) Subject: re PR c++/60842 (In-class initializer causes a strange error) X-Git-Tag: basepoints/gcc-7~5734 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a;p=thirdparty%2Fgcc.git re PR c++/60842 (In-class initializer causes a strange error) 2015-07-10 Paolo Carlini PR c++/60842 * g++.dg/cpp0x/nsdmi-template15.C: New. From-SVN: r225679 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc7988b12dff..c21e3d83f963 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-10 Paolo Carlini + + PR c++/60842 + * g++.dg/cpp0x/nsdmi-template15.C: New. + 2015-07-10 Jiong Wang * gcc.target/aarch64/got_mem_hoist_1.c: New test. diff --git a/gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C b/gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C new file mode 100644 index 000000000000..e3454f093472 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C @@ -0,0 +1,13 @@ +// PR c++/60842 +// { dg-do compile { target c++11 } } + +namespace N { + class I {}; +} + +template +class J {}; + +class S { + J j = J{}; +};