Bug Report #5
Alexandrescu, Andrei
AlexandrescuA@MICROMODELING.COM
Sat Nov 7 23:58:00 GMT 1998
Sorry for flooding your Inbox.
The following code generates the message:
Internal compiler error 92.
Please submit a full bug report to `egcs-bugs@cygnus.com'.
/////////////////////////////////////////////////////
template <typename T>
struct type_traits
{
template <typename U>
class pointer_convertible_from
{
typedef char (&no)[1000];
typedef char (&yes)[2000];
public:
typedef U * pointer;
static yes check(T *);
static no check(void *);
static const bool is = sizeof(check(pointer())) ==
sizeof(yes);
};
};
int main()
{
bool b = type_traits<fixed>::pointer_convertible_from<X>::is;
return 0;
}
/////////////////////////////////////////////////////
Yours,
Andrei
More information about the Gcc-bugs
mailing list