[Bug c++/17929] New: [3.4/4.0 regresssion] ICE with qualified name in template specialization
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 11 09:04:00 GMT 2004
Mark, your patch for PR 17393
http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg00485.html
breaks the test testsuite/g++.dg/parse/qualified2.C
====================================================================
namespace Glib {
template <typename> class Value {};
template <> class Glib::Value<int> {}; // { dg-error "" }
}
====================================================================
qualified2.C:3: error: extra qualification ignored
qualified2.C:3: error: explicit specialization of non-template 'Glib::<anonymous
class>'
qualified2.C:3: error: abstract declarator 'Glib::<anonymous class>' used as
declaration
qualified2.C:3: internal compiler error: tree check: expected class
'declaration', have 'exceptional' (error_mark) in finish_anon_union, at
/cp/decl2.c:1190
Please submit a full bug report, [etc.]
Could you please have a look?
--
Summary: [3.4/4.0 regresssion] ICE with qualified name in
template specialization
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, ice-checking
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,mark at codesourcery dot
com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17929
More information about the Gcc-bugs
mailing list