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]

Re: c++/9344: in template, typedef for reference return type cannot be used


Synopsis: in template, typedef for reference return type cannot be used

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 16 14:27:58 2003
State-Changed-Why:
    You need to use the "typename" keyword here as well:
      typename Container<T>::ref foo1() { }
    or omit the qualification:
      ref foo1() { }

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9344


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