This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug Report #5


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]