diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2015-07-10 14:44:43 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-07-10 14:44:43 +0000 |
commit | f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a (patch) | |
tree | 6a01b04498fbd7d8448997714c59c58c0fb1b09b | |
parent | 2f40fae2d9bc3e3aeee081c4793492cc0a4b8b05 (diff) | |
download | gcc-f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a.zip gcc-f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a.tar.gz gcc-f3ae5c0ceac5d273b63f78ad95f87bcf5d17a78a.tar.bz2 |
re PR c++/60842 (In-class initializer causes a strange error)
2015-07-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60842
* g++.dg/cpp0x/nsdmi-template15.C: New.
From-SVN: r225679
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/nsdmi-template15.C | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc7988b..c21e3d8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-10 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/60842 + * g++.dg/cpp0x/nsdmi-template15.C: New. + 2015-07-10 Jiong Wang <jiong.wang@arm.com> * 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 0000000..e3454f0 --- /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 <typename, typename> +class J {}; + +class S { + J<int, N::I> j = J<int, N::I>{}; +}; |