a step backward for references in egcs-980615 ?

Jason Merrill jason@cygnus.com
Wed Jun 17 18:53:00 GMT 1998


>>>>> David C Binderman <dcb@pncl.co.uk> writes:

> struct S
> {
> 	int & ref;
> 	S() : ref() {	// error, since no initor for ref
> 	};
> };

> ../gnu/Results.egcs-980608.1/bin/g++

> jun17.cc: In method `S::S()':
> jun17.cc:5: Error: incomplete initializer for member `S::ref' of class `S'
> which has no constructor

> ../gnu/Results.egcs-980615.1/bin/g++

> jun17.cc: In method `S::S()':
> jun17.cc:5: warning: initialization of non-const reference `int &' from
> rvalue `int'

Fixed, thanks.

Jason



More information about the Gcc-bugs mailing list