This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14283] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2004 01:37:04 -0000
- Subject: [Bug c++/14283] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid code snippet is causing trouble:
=========================================
struct A
{
template <typename> struct B {};
};
template <typename> struct C
{
typedef A::template B<void> X;
};
=========================================
It gave an ICE with 2.95.x - 3.3.x.
With the new parser in the 3.4 branch we only got a rejects-valid.
But with Giovanni's patch for PR 14008
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00361.html
we get an ICE on mainline again:
PR.cc:8: internal compiler error: in
cp_parser_parse_and_diagnose_invalid_type_name, at cp/parser.c:2050
Giovanni, could you please have a look (although you are not responsible for
the fact that gcc never got this right).
--
Summary: [3.5 regression] ICE in
cp_parser_parse_and_diagnose_invalid_type_name
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
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,giovannibajo at libero
dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14283