Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Internal error: func 501
I have extracted the following test-case from STLport's (version 4.5 or 0930) type_traits.h: struct _PointerShim { _PointerShim(const volatile void*); }; char _IsP(bool, _PointerShim); char* _IsP(bool, ...); template <class _Tp> struct _IsPtr { static _Tp& __null_rep(); enum { _Ret = (sizeof(_IsP(false,__null_rep())) == sizeof(char)) }; }; _IsPtr<int *> y; // works for non-pointer types, but with this one I get // "Internal error: func 501" int main(int argc, char *argv[]) { return 0; } bye, Christof -- http://cmeerw.cjb.net JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net? Nov 01 2001
|