------- Comment #9 from rguenth at gcc dot gnu dot org 2008-02-02 16:30 -------
The correct fix is probably here (convert_like_real):
if ((lvalue & clk_packed)
&& CLASS_TYPE_P (type)
&& !TYPE_HAS_TRIVIAL_INIT_REF (type))
{
error ("cannot bind packed field %qE to %qT",
expr, ref_type);
return error_mark_node;
}
expr = build_target_expr_with_type (expr, type);
and call convert_like_real (convs->u.next, expr ... with the right mysterious
arguments before passing the initializer to build_target_expr_with_type.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35056