diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2018-09-25 16:05:48 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2018-09-25 16:05:48 +0000 |
commit | 0ae1678fd9f972a64bfa54da723e760d32dd95ab (patch) | |
tree | 954c34ad26da5b035757d49693c45c9330808ba6 | |
parent | 29b26763f5552129996bfc732cfa2087d7c9657c (diff) | |
download | gcc-0ae1678fd9f972a64bfa54da723e760d32dd95ab.zip gcc-0ae1678fd9f972a64bfa54da723e760d32dd95ab.tar.gz gcc-0ae1678fd9f972a64bfa54da723e760d32dd95ab.tar.bz2 |
re PR c++/81246 (ICE on invalid C++ code (with a non-type template parameter having type 'float'): Segmentation fault)
2018-09-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81246
* g++.dg/cpp0x/pr81246.C: New.
From-SVN: r264577
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr81246.C | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a591bf..056597d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-09-25 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/81246 + * g++.dg/cpp0x/pr81246.C: New. + 2018-09-25 H.J. Lu <hongjiu.lu@intel.com> PR target/82699 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr81246.C b/gcc/testsuite/g++.dg/cpp0x/pr81246.C new file mode 100644 index 0000000..e51e0b9 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr81246.C @@ -0,0 +1,11 @@ +// { dg-do compile { target c++11 } } + +namespace N +{ + template < typename T > class A + { + template < T > friend class B; // { dg-error "not a valid type" } + }; + + A < float > a; +} |