[Bug fortran/33370] [4.3 Regression] Structure component arrays

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 10 06:20:00 GMT 2007



------- Comment #2 from burnus at gcc dot gnu dot org  2007-09-10 06:20 -------
gfortran 4.2:
  struct foo a[4];
    int4 A.1[4];
    struct array1_int4 atmp.0;
    [...]
      static int4 data.3[4] = {12, 2, 3, 10};
      __builtin_memcpy (&(*(int4[0:] *) atmp.0.data)[0], &data.3, 16);
      [...]
  a[NON_LVALUE_EXPR<S.4>].i = (*(int4[0:] *)
atmp.0.data)[NON_LVALUE_EXPR<S.4>];


gfortran 4.3:
  struct foo a[4];
  static int4 A.1[4] = {12, 2, 3, 10};
  (void) __builtin_memcpy ((void *) &a, (void *) &A.1, 32);


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |4.3.0
      Known to work|                            |4.1.3 4.2.1
            Summary|Structure component arrays  |[4.3 Regression] Structure
                   |                            |component arrays


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



More information about the Gcc-bugs mailing list