egcs-980315

David C Binderman dcb@pncl.co.uk
Sun Mar 22 12:42:00 GMT 1998


Hello there,

For the following c++ source code

struct S
{
	int i;
};

S a;

void
f()
{
	int i = a->i;
	S * p = &a;
	int j = p.i;
};

egcs-980302 gave

mar16.cc: In function `void f()':
mar16.cc:12: Error: base operand of `->' is not a pointer
mar16.cc:14: Error: request for member `i' in `p', which is of non-aggregate
type `S *'

and egcs-980315 gave

mar16.cc: In function `void f()':
mar16.cc:12: Error: Internal compiler error.
mar16.cc:12: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

This looks like a step backward to me. Any chance of getting this
test into the test suite ?

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