This is the mail archive of the gcc@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]

Re: Incomplete Types


> Your testcase compiles without complaint on UnixWare 7.1.0 CC and on
> the development snapshot of EGCS as of this morning.
> 
> So, without actually understanding the code, I'm guessing you just ran
> into a C++ feature that hadn't been implemented in EGCS 1.1.2.

Yes. egcs 1.1 apparently did not expect that you could ever legally
form a pointer-to-member in an incomplete class. You can, if you pass
it as a template parameter, as Leslie's example demonstrates. It looks
like this was fixed by

1998-10-06  Mark Mitchell  <mark@markmitchell.com>

	* init.c (build_offset_ref): Do lookup even for classes that are
	only partially defined.

A ChangeLog is a great thing :-)

Regards,
Martin


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