This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25922] Incomplete type with embedded member template struct
- 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: 23 Jan 2006 13:17:46 -0000
- Subject: [Bug c++/25922] Incomplete type with embedded member template struct
- References: <bug-25922-12057@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-01-23 13:17 -------
Your source is wrong, you forgot the template keyword.
The corrected line for NEWTYPE is
typedef typename A<T1>::template B<double>::C NEWTYPE;
and this works on all compilers from 3.2.3 on.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25922