This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50070] Segmentation fault at size_binop_loc in fold-const.c


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

janus at gcc dot gnu.org changed:

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

--- Comment #1 from janus at gcc dot gnu.org 2011-08-13 11:22:45 UTC ---
I can confirm the segfault with 4.5, 4.6 and 4.7 (trunk) on the test case in
comment #0:


subroutine sub
  common n,z
  character(n) z 
end


However, when removing the subroutine line, I get:

  common n,z
            1
Error: 'z' at (1) must have constant character length in this context


And on the following variant

subroutine sub
  common z
  character(n) z 
end

one get's a different error:

  character(n) z 
            1
Error: Variable 'n' cannot appear in the expression at (1)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]