[C++ RFC] Re: PR 10776

Richard Henderson rth@redhat.com
Sun Jan 11 20:29:00 GMT 2004


On Sun, Jan 11, 2004 at 02:24:50PM -0500, Jason Merrill wrote:
> Looks like a useful transformation, but I wonder what will happen with
> CONSTRUCTOR elements which should result in a constructor call, i.e.
> 
>   struct A {
>     A();
>     A(int);
>   };
> 
>   A ar[4] = { 1 };
> 
> How does build_vec_init mesh with your new approach?

I believe that this case is unchanged, since I would expect 

  else if (TYPE_NEEDS_CONSTRUCTING (type))
    return build (INIT_EXPR, type, decl, value);

to be true, and this test shadows the new code.


r~



More information about the Gcc-patches mailing list