From: Jason Merrill Date: Wed, 9 Aug 2000 18:55:42 +0000 (-0400) Subject: pt.c (tsubst_aggr_type): Bail if creating the argvec fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cc82a019817f8eaf807831dd34afc8701d37ee0;p=gcc.git pt.c (tsubst_aggr_type): Bail if creating the argvec fails. * pt.c (tsubst_aggr_type): Bail if creating the argvec fails. (tsubst_template_arg_vector): Likewise. From-SVN: r35592 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explarg1.C b/gcc/testsuite/g++.old-deja/g++.pt/explarg1.C new file mode 100644 index 00000000000..4a1c66b65de --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explarg1.C @@ -0,0 +1,21 @@ +// Bug: g++ generates an error trying to generate the first foo, when +// it should silently fail and go on to the next one. + +template class A { }; + +template void +foo(const A&); + +template +class B { }; + +template void +foo(B const &) { } + +int +main(void) +{ + B sa; + + foo (sa); +}