------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-12 18:40 ------- This has been broken for a while. With "3.5.0 20040909", I get the following ICE: t.cc:1: error: `some_type' was not declared in this scope t.cc:2: error: `template<class T> int foo(T)' redeclared as different kind of symbol t.cc:1: error: previous declaration of `int foo' t.cc:2: internal compiler error: tree check: expected class 'd', have 'x' (error_mark) in push_template_decl_real, at cp/pt.c:3067 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
-- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |error-recovery, ice-on- | |invalid-code Last reconfirmed|0000-00-00 00:00:00 |2005-03-12 18:40:49 date| | Summary|ICE on invalid C++ code |[4.0/4.1 Regression] ICE on | |invalid C++ code Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20443