This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 2.95.2 bug
"Martin v. Loewis" wrote:
>
> > See 3.9 p2. I don't think references are PODs; How do you copy the bytes
> > that make up a reference into an array of char?
>
> That is more clearly explained in 3.9/9 (reference types are not
> object types) and 3.9/10 (references are not POD). See also 8.3.2/3:
>
> # It is unspecified whether or not a reference requires storage (3.7).
>
> Regards,
> Martin
Yes, I missed that, sorry. However then, is it not a bug in g++ that the
reference _is_ statically initialized if A does not have a ctor? I don't
see why this should make a difference.
Thanks
Martin