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]

Re: Name resolution bug with templated classes and functions


>>>>> «Hans», Hans Utz <hans.utz@student.uni-ulm.de> wrote:

Hans> This little program produces an internal compiler error.
Hans> template<class T>
Hans> struct c1
Hans> {

Hans> };

Hans> template<class T>
Hans> struct c2 {
Hans>   void c1() {}
Hans> };

Hans> template<class T>
Hans> void foo(T) 
Hans> {
Hans>   c2<T> bar;

Hans>   bar.c1();
Hans> };

Hans> int main (char*, char**)
Hans> {
Hans>   foo(1); 
Hans>   return 0;
Hans> }

Hans> I´m using egcs-2.91.57 coming with the 1.1b release 
Hans> on a Linx 2.0.32 PC.


this problem seems to be fixed in egcs-2.92.18 (on a SPARCStation)

-- Gaby


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