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
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.
type = expand_start_catch_block (decl);
HANDLER_TYPE (handler) = type;
- if (type)
+ if (!processing_template_decl && type)
mark_used (eh_type_info (type));
}
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.
--- /dev/null
+template <class T>
+void foo()
+{
+ try {}
+ catch(T e) {}
+}