public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/59906] New: [4.7/4.8 Regression] error: size of variable '<anonymous>' is too large
@ 2014-01-22 14:01 anlauf at gmx dot de
  2014-01-22 14:57 ` [Bug fortran/59906] " anlauf at gmx dot de
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: anlauf at gmx dot de @ 2014-01-22 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59906
           Summary: [4.7/4.8 Regression] error: size of variable
                    '<anonymous>' is too large
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gmx dot de

Hi,

a colleague just reported a regression for the code below.
It compiles fine with 4.3.4 and 4.5.0, but fails with 4.7.4 and 4.8.2.
Cannot check trunk right now.

% gfortran48 robin_gfortran_bug.f90
robin_gfortran_bug.f90: In function 'y':
robin_gfortran_bug.f90:17:0: error: size of variable '<anonymous>' is too large
     print*,str_cmp((/'aaa','bbb'/), str_aux)
 ^

% gfortran47 robin_gfortran_bug.f90      
robin_gfortran_bug.f90: In function 'y':
robin_gfortran_bug.f90:17:0: error: size of variable '<anonymous>' is too large


% cat robin_gfortran_bug.f90
program x
  implicit none
  call y('abcdef')
contains 

  subroutine y(str)
    character(len=*), intent(in) :: str

    character(len=len_trim(str)) :: str_aux

    str_aux = str

    ! Compiles
!   print*,str_cmp((/'aaa','bbb'/), str)

    ! Does not compile:
    print*,str_cmp((/'aaa','bbb'/), str_aux)

  end subroutine y

  elemental logical function str_cmp(str1, str2)
    character(len=*), intent(in) :: str1
    character(len=*), intent(in) :: str2
    str_cmp = (str1 == str2)
  end function str_cmp

end program x


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-02-07 23:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-22 14:01 [Bug fortran/59906] New: [4.7/4.8 Regression] error: size of variable '<anonymous>' is too large anlauf at gmx dot de
2014-01-22 14:57 ` [Bug fortran/59906] " anlauf at gmx dot de
2014-01-22 18:04 ` hjl.tools at gmail dot com
2014-01-28 22:32 ` [Bug fortran/59906] [4.7/4.8/4.9 " anlauf at gmx dot de
2014-01-31  9:30 ` pault at gcc dot gnu.org
2014-01-31 11:35 ` rguenth at gcc dot gnu.org
2014-01-31 17:48 ` anlauf at gmx dot de
2014-01-31 17:49 ` anlauf at gmx dot de
2014-01-31 17:53 ` anlauf at gmx dot de
2014-02-01 13:35 ` pault at gcc dot gnu.org
2014-02-01 18:51 ` pault at gcc dot gnu.org
2014-02-05  9:47 ` [Bug fortran/59906] [4.7/4.8 " dominiq at lps dot ens.fr
2014-02-07 21:16 ` pault at gcc dot gnu.org
2014-02-07 23:30 ` pault at gcc dot gnu.org
2014-02-07 23:31 ` pault at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).