This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug Report #5
- To: "'egcs-bugs at cygnus dot com'" <egcs-bugs at cygnus dot com>, "'khan at xraylith dot wisc dot edu'" <khan at xraylith dot wisc dot edu>
- Subject: Bug Report #5
- From: "Alexandrescu, Andrei" <AlexandrescuA at MICROMODELING dot COM>
- Date: Sun, 8 Nov 1998 01:46:49 -0500
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