diff options
author | Paolo Carlini <pcarlini@suse.de> | 2007-07-08 22:41:12 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2007-07-08 22:41:12 +0000 |
commit | 833be2294da78c26dfe3ca259b155bee1fe86ac2 (patch) | |
tree | 7f9f50ac990065f64cad084edb0900da79c82167 /gcc/testsuite | |
parent | fb263f821cdab4e9237c4a321f959ac9e3704686 (diff) | |
download | gcc-833be2294da78c26dfe3ca259b155bee1fe86ac2.zip gcc-833be2294da78c26dfe3ca259b155bee1fe86ac2.tar.gz gcc-833be2294da78c26dfe3ca259b155bee1fe86ac2.tar.bz2 |
re PR c++/30535 (ICE with invalid template operator)
/cp
2007-07-08 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* pt.c (unify): Never pass error_mark_node to template_decl_level.
/testsuite
2007-07-08 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* g++.dg/template/operator10.C: New.
From-SVN: r126470
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/operator10.C | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4f24f50..66749ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-08 Paolo Carlini <pcarlini@suse.de> + + PR c++/30535 + * g++.dg/template/operator10.C: New. + 2007-07-08 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/32217 diff --git a/gcc/testsuite/g++.dg/template/operator10.C b/gcc/testsuite/g++.dg/template/operator10.C new file mode 100644 index 0000000..b17f49f --- /dev/null +++ b/gcc/testsuite/g++.dg/template/operator10.C @@ -0,0 +1,7 @@ +// PR c++/30535 + +struct A {}; + +template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" } + +int i = A() - 0; // { dg-error "no match" } |