c++/9758: [mingw] g++ ICE on (presumably) legal code

Danny Smith dannysmith@clear.net.nz
Wed Feb 19 21:38:00 GMT 2003


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

With GCC-3.3 (mingw build) I get this instead of ICE.

In file included from ../pxtSocket.h:5,
                 from ../pxtSockStrm.h:3,
                 from pxtSockStrm.cpp:7:
../pxtSmartPtr.h: At global scope:
../pxtSmartPtr.h:612: error: friend declaration requires class-key, i.e.
   `friend class Extend::target<PtrTraits,
pxt::smart_ptr_impl<PtrTraits,
   MgmtPolicy, ChkPolicy, Extend> >'
In file included from ../pxtSockStrm.h:3,
                 from pxtSockStrm.cpp:7:
../pxtSocket.h:18: warning: ignoring #pragma comment
../pxtSockStrm.h:91: confused by earlier errors, bailing out



Danny



More information about the Gcc-bugs mailing list