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 980715


>   Found a bug ... below is the requested information. Attached is a
> gziped file containing the preprocessed output of the source file that 
> caused the error.

Thanks for your bug report. With egcs-2.93.21, I get

In file included from /musr/tools/STLport/sun4compat/stl/stl_algobase.h:75,
                 from /musr/tools/STLport/sun4compat/stl/memory:28,
                 from /musr/tools/STLport/sun4compat/stl/string:54,
                 from ActMgr.C:20:
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning: friend declaration `bool operator ==(const reverse_bidirectional_iterator<_BidirectionalIterator,_Tp,_Reference,_Distance> &, const reverse_bidirectional_iterator<_BidirectionalIterator,_Tp,_Reference,_Distance> &)'
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning:   declares a non-template function
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning:   (if this is not what you intended, make sure
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning:   the function template has already been declared,
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning:   and add <> after the function name here)
/musr/tools/STLport/sun4compat/stl/stl_iterator.h:181: warning:   -Wno-non-template-friend disables this warning.
In file included from /fusr/gthomas/cp0.0/cp/src/msg/incl/AckMsg.h:11,
                 from ActMgr.C:25:
/fusr/gthomas/cp0.0/cp/src/msg/incl/Ack.h:30: ANSI C++ forbids data member `AckType' with same name as enclosing class
In file included from ActMgr.C:25:
/fusr/gthomas/cp0.0/cp/src/msg/incl/AckMsg.h:17: confused by earlier errors, bailing out

So it seems the bug in egcs will be fixed in the next release.

The confusion is likely caused by the error

class AckType
{
   ...
   int         AckType;
};

Regards,
Martin


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