From f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 10 Jul 2015 14:44:43 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc7988b12df..c21e3d83f96 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 00000000000..e3454f09347 --- /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{}; +}; -- 2.30.2