[C++ Patch] PR 22256

Paolo Carlini pcarlini@suse.de
Mon Aug 6 19:01:00 GMT 2007


Hi,

the problem here is that we try to be sophisticated and pedwarn instead
of plain error when the user specifies a return type consistent with the
conversion operator. Unfortunately the idea breaks as soon as pointers
or references are involved, because the type is "approximated" from
declspecs->type. AFAICS, we can simply error unconditionally (as other
front-ends already do) and obtain a consistent behavior.

Tested x86_64-linux, Ok?

Paolo.

////////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_22256
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070806/bf23c95e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_22256
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070806/bf23c95e/attachment-0001.ksh>


More information about the Gcc-patches mailing list