This is the mail archive of the
mailing list for the GCC project.
Re: C++ PATCH: typedefs breaking conversions
- To: nathan at cs dot bris dot ac dot uk
- Subject: Re: C++ PATCH: typedefs breaking conversions
- From: Martin von Loewis <loewis at informatik dot hu-berlin dot de>
- Date: Wed, 31 Mar 1999 16:14:22 +0200
- CC: egcs-patches at egcs dot cygnus dot com, jason at cygnus dot com
- References: <37020ACA.27017A5F@acm.org>
> this is a patch for
> http://egcs.cygnus.com/ml/egcs-bugs/1999-03/msg00778.html (Martin v. Loewis)
> http://egcs.cygnus.com/ml/egcs-bugs/1999-03/msg00985.html (Andrew
Thanks for your patch. I have installed the test case as
Jason, is it ok to install the patch? It looks right to me.
> I'm not 100% sure of the legality of Andrew's example, ClassC has
> base classes -- I thought that made it non-PoD, but can't find words in the
> standard to that effect (9/4 doesn't mention it).
I'm not sure what you are referring to. I agree that ClassC should be
non-POD, and I couldn't find the place where it says so in the
I'm not sure why that would make the case ill-formed. Perhaps you're
referring to 12.7/1? That might make it undefined behaviour. However,
it is undefined behaviour, anyway, as it derefences a null pointer. It
should still be well-formed.