Commit b80cfdcd by Mark Mitchell Committed by Mark Mitchell

re PR c++/13179 (ICE w/template parameter in catch specification)

	PR c++/13179
	* semantics.c (finish_handler_parms): Do not call eh_type_info for
	types used in templates.

	PR c++/13179
	* g++.dg/template/eh1.C: New test.

From-SVN: r74269
parent 32da7865
2003-12-03 Mark Mitchell <mark@codesourcery.com>
PR c++/13179
* semantics.c (finish_handler_parms): Do not call eh_type_info for
types used in templates.
PR c++/10771
* parser.c (cp_parser_check_for_invalid_template_id): New
function.
......
......@@ -960,7 +960,7 @@ finish_handler_parms (tree decl, tree handler)
type = expand_start_catch_block (decl);
HANDLER_TYPE (handler) = type;
if (type)
if (!processing_template_decl && type)
mark_used (eh_type_info (type));
}
......
......@@ -4,6 +4,9 @@
2003-12-03 Mark Mitchell <mark@codesourcery.com>
PR c++/13179
* g++.dg/template/eh1.C: New test.
PR c++/10771
* g++.dg/template/error5.C: New test.
......
template <class T>
void foo()
{
try {}
catch(T e) {}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment