This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11351] typedef to nested template causes error


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
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]