This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29503] Internal Compiler Error with Friend + Template + Typedef
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2006 17:12:06 -0000
- Subject: [Bug c++/29503] Internal Compiler Error with Friend + Template + Typedef
- References: <bug-29503-13429@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-18 17:12 -------
The ICE is fixed in 4.0.4 for sure:
[pinskia@celery ~]$ ~/gcc-4.0/bin/gcc t.cc
t.cc:16: error: using typedef-name ?TD::Factory? after ?class?
t.cc:13: error: ?TD::Factory? has a previous declaration here
t.cc:18: error: expected unqualified-id at end of input
[pinskia@celery ~]$ ~/gcc-4.1/bin/gcc t.cc
t.cc:16: error: using typedef-name ?TD::Factory? after ?class?
t.cc:13: error: ?TD::Factory? has a previous declaration here
t.cc:18: error: expected unqualified-id at end of input
[pinskia@celery ~]$ ~/gcc-local/bin/gcc t.cc
t.cc:16: error: using typedef-name ?TD::Factory? after ?class?
t.cc:13: error: ?TD::Factory? has a previous declaration here
t.cc:18: error: expected unqualified-id at end of input
You cannot friend a typedef at least not yet, there is a defect report about
that in the C++ standard and another bug filed against GCC for it also but I
cannot find it right now.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29503