re PR c++/8338 (Infinite loop on illegal code)
authorMark Mitchell <mark@codesourcery.com>
Fri, 8 Nov 2002 01:42:23 +0000 (01:42 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 8 Nov 2002 01:42:23 +0000 (01:42 +0000)
commit4f2c9d7ec6409e570be8df243c57e4e3298b26e6
treefa22e6801338e929ebb4695d50bd7f7c25b302c2
parent07cf4226a74edbf9f7872f0c001fc82791c80ba0
re PR c++/8338 (Infinite loop on illegal code)

PR c++/8338
* pt.c (for_each_template_parm): Add htab parameter.
(process_partial_specialization): Adjust call.
(push_template_decl_real): Likewise.
(pair_fn_data): Add visited.
(for_each_template_parm_r): Avoid walking duplicates more than
once.
(uses_template_parms): Adjust call to for_each_template_parm.

PR c++/8338
* g++.dg/template/crash2.C: New test.

From-SVN: r58911
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash2.C [new file with mode: 0644]