[Bug fortran/56293] Segfault when trying to access pass-by-reference value of a not-word-aligned REAL(16) / -fno-align-commons

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 10 15:32:00 GMT 2013


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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-03-10 15:32:14 UTC ---

> The question is also whether one can construct a fully standard-conform example
> which fails without -fno-align-commons – and whether some real-world code uses
> COMMON in a way that would fails with alignments/padding.

      program main
      real a,f1,f2,d
      common /foo/ a,f1,f2,d
      a = 1.0
      d = 1.0
      call s1
      end
      subroutine s1
      real a,b
      double precision d
      common /foo/ a,d,b
      print *,a
      print *,b
      end



More information about the Gcc-bugs mailing list