i.c.e since 980508

David C Binderman dcb@pncl.co.uk
Thu May 28 11:23:00 GMT 1998


Hello there,

The following legal C++ source code has caused a compiler error 390
in each snapshot since 980508.

struct A {
	int m_val;
	friend int operator ->* (A & other, int A::*pm)
		{ return 31; }
};

int A::*pi = & A::m_val;

int
main(void)
{
	A c;
	c.m_val = 42;
	int j = c ->* pi;

	if (j == 31)
		return 0;
	else
		return 1;
}	

Regards

David Binderman MSc BSc    +44 1293 534 847       dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
 - Dr Stroustrup, inventor of C++




More information about the Gcc-bugs mailing list