This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11351] typedef to nested template causes error
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2003 13:20:03 -0000
- Subject: [Bug c++/11351] typedef to nested template causes error
- References: <20030627131554.11351.benko@sztaki.hu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11351
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-27 13:20 -------
Adding template in from of i<U> makes it compile. I think this is one of the places the keyword
template is needed but I do not have the C++ standard.
template <typename T>
struct a
{
template <typename U>
struct i
{};
};
template <typename T, typename U>
struct b
{
typedef typename a<T>::template i<U> a_t; // line 12
};