www.digitalmars.com         C & C++   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