[PR c++/84492] return stmt expr ending with overload

Jason Merrill jason@redhat.com
Wed Feb 28 17:43:00 GMT 2018


On Wed, Feb 28, 2018 at 7:06 AM, Alexandre Oliva <aoliva@redhat.com> wrote:
> We ICEd when returning a stmt expr that ends with an overloaded
> function.  It's ill-formed when we can't convert the function name to
> the return type, but we should say that, not ICE.

Hmm, what about the case where we could convert the function name to
the return type?  I think it should still be ill-formed for a
statement-expression to have an unresolved overload as its value.  So
finish_stmt_expr_expr should check type_unknown_p.

Jason



More information about the Gcc-patches mailing list