* g++.dg/template/crash32.C: New test.
PR c++/19667
* pt.c (redeclare_class_template): Robustify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94402
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-01-28 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/19667
+ * pt.c (redeclare_class_template): Robustify.
+
2005-01-27 Steven Bosscher <stevenb@suse.de>
* decl.c (finish_case_label): Use SWITCH_STMT accessor macros
type. */
return;
+ if (!parms)
+ {
+ error ("template specifiers not specified in declaration of %qD",
+ tmpl);
+ return;
+ }
+
parms = INNERMOST_TEMPLATE_PARMS (parms);
tmpl_parms = DECL_INNERMOST_TEMPLATE_PARMS (tmpl);
+2005-01-28 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/19667
+ * g++.dg/template/crash32.C: New test.
+
2005-01-28 Ian Lance Taylor <ian@airs.com>
PR middle-end/16558
--- /dev/null
+// PR c++/19667
+
+struct integral_constant { };
+
+template<typename _Tp>
+struct is_function : public integral_constant { }; // { dg-error "previous" }
+
+template<>
+struct is_function : public integral_constant { }; // { dg-error "" }