This is the mail archive of the gcc-patches@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: C++ PATCH: typedefs breaking conversions


> 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
> Zabolotny)

Nathan,

Thanks for your patch. I have installed the test case as
g++.martin/typedef1.C.

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
standard either. 

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.

Regards,
Martin


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