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: Internal compiler error 90. Bug report


Roberto Viviani wrote:
> 
> Object: bug report - typedef-ined types of template classes generate error
> 90 in nested classes
> 
> The following code snippet generates the error message 'Internal compiler
> error 90. Please submit a full bug report to etc.':
> 
> template<class T> class baseclass {
> public:
>         typedef int* iterator;
> };
> 
> template<class T> class derived : public baseclass<T> {
> public:
>         typedef baseclass<T> base;
>         void f(base::iterator i);       //this compiles ok
>         class internal {
>         public:
>                 void g(base::iterator i);  //<- error here
>         };
> };

What compiler do you use? For me the error occurs with egcs-1.0.2 and
gcc-2.8.1, but not with the current snapshot.
Seems to be fixed for the upcoming egcs-1.1 .

--
Thomas Kunert


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