[C++ Patch] PR 22256

Mark Mitchell mark@codesourcery.com
Thu Aug 9 22:40:00 GMT 2007


Paolo Carlini wrote:
> 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?

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list