diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-12-23 19:54:09 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-12-23 19:54:09 +0000 |
commit | aae4a2774745b0d7b1007478b7f0624d2f053602 (patch) | |
tree | c64e1164a075daef52ee73abf59500f11de6bcad /gcc/cp/pt.c | |
parent | 3316f968992e9ffe9e8fc4e9ec8441b406d0e7ee (diff) | |
download | gcc-aae4a2774745b0d7b1007478b7f0624d2f053602.zip gcc-aae4a2774745b0d7b1007478b7f0624d2f053602.tar.gz gcc-aae4a2774745b0d7b1007478b7f0624d2f053602.tar.bz2 |
re PR c++/17413 (local classes as template argument)
PR c++/17413
* pt.c (check_instantiated_args): Remove bogus SFINAE code.
PR c++/17413
* g++.dg/template/local4.C: New test.
* g++.dg/template/crash19.C: Add dg-error marker.
From-SVN: r92562
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 3c6f5bc..bbe892e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -8926,9 +8926,7 @@ check_instantiated_args (tree tmpl, tree args, tsubst_flags_t complain) if (nt) { - if (!(complain & tf_error)) - /*OK*/; - else if (TYPE_ANONYMOUS_P (nt)) + if (TYPE_ANONYMOUS_P (nt)) error ("%qT uses anonymous type", t); else error ("%qT uses local type %qT", t, nt); |