http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55387



--- Comment #4 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-20 
17:43:37 UTC ---

This problem no longer exists at r193669 on x86_64-apple-darwin12 with Xcode

4.5.2 so it appears that...



r193667 | dnovillo | 2012-11-20 11:26:09 -0500 (Tue, 20 Nov 2012) | 26 lines



Convert vec<> into a POD.



This fixes PR 55398 by making vec<> a true POD.  I thought we could get

away with having private fields, but we can't.  We fail to pass vec<>

instances through varargs.



The patch makes every field public and mangles the field names in the

hope that no future patch will try to make use of them directly.  It's

horrible, but I could not think of anything better.



Tested with clang++ as the host compiler.



2012-11-20  Diego Novillo  <dnovi...@google.com>



    PR middle-end/55398

    * vec.h (class vec_prefix): Make every field public.

    Rename field alloc_ to alloc_PRIVATE_.

    Rename field num_ to num_PRIVATE_.

    Update all users.

    (class vec<T, A, vl_embed>): Make every field public.

    Rename field pfx_ to pfx_PRIVATE_.

    Rename field data_ to data_PRIVATE_.

    Update all users.

    (class vec<T, A, vl_ptr>): Make every field public.

    Rename field vec_ to vec_PRIVATE_.

    Update all users.



likely fixed this issue.

Reply via email to