public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/104927] New: Invalid array size specification accepted
@ 2022-03-15  8:46 federico.perini at gmail dot com
  2022-03-15 15:27 ` [Bug fortran/104927] " kargl at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: federico.perini at gmail dot com @ 2022-03-15  8:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104927

            Bug ID: 104927
           Summary: Invalid array size specification accepted
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: federico.perini at gmail dot com
  Target Milestone: ---

Created attachment 52627
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52627&action=edit
test program

A low priority bug, I guess.

The following invalid code with double array size specifications is accepted by
gfortran 10.3.0 all the way down to at least 8.1.0:

integer, allocatable, dimension(:,:) :: a(:)
integer, allocatable, dimension(:)   :: b(:,:)
integer, allocatable, dimension(:,:) :: c(:,:)

It appears that the shape then picked by gfortran is that on the right hand
side, but no errors/warning are printed. I've attached a test program for this.

Thanks for the hardwork on gfortran!
Federico

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

end of thread, other threads:[~2022-03-15 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15  8:46 [Bug fortran/104927] New: Invalid array size specification accepted federico.perini at gmail dot com
2022-03-15 15:27 ` [Bug fortran/104927] " kargl at gcc dot gnu.org
2022-03-15 16:10 ` federico.perini at gmail dot com
2022-03-15 16:34 ` sgk at troutmask dot apl.washington.edu

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).