This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28496] Error during array initialization with gfortran
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2006 19:15:03 -0000
- Subject: [Bug fortran/28496] Error during array initialization with gfortran
- References: <bug-28496-13007@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2006-07-26 19:15 -------
First, you'll want to upgrade to at least 4.1.1 form 4.0.2.
Second, yes, it appears to be a bug. These lines work as expected.
integer, dimension(6), parameter :: y=(/ a(1:3), b(1:3) /)
integer, dimension(6), parameter :: y=(/ a, b /)
It appears the (:) in a(:) and b(:) is not handled correctly.
I haven't looked into the implicit do loop method.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28496