Copy constructor access check while initializing a reference

Peter A. Felvegi petschy@praire-chicken.com
Tue Mar 4 01:16:00 GMT 2008


hello,

i've found this in the known non-bugs list
(http://gcc.gnu.org/bugs.html#known), after running into the issue. gcc
3.4-4.2 gives a compile error, but 4.3 compiles it. is this a
regression, or the rules were relaxed somewhat (c++0x?) ? i checked the
changelog, but couldn't find any relevant entries there.

could someone explain the rationale behind this extra access check,
please? i'm puzzled, since the copy ctor is not needed and is not called
from the generated code.

regards, p


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080304/6a0faaea/attachment.sig>


More information about the Gcc mailing list