public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50542] New: gfortran should detect violation of Fortran   95 R536 (r178939)
@ 2011-09-27 14:29 zeccav at gmail dot com
  2013-06-22 15:17 ` [Bug fortran/50542] " dominiq at lps dot ens.fr
  2021-02-27  8:58 ` zeccav at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: zeccav at gmail dot com @ 2011-09-27 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50542
           Summary: gfortran should detect violation of Fortran   95 R536
                    (r178939)
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zeccav@gmail.com


! gfortran should detect violation of Fortran   95 R536 (r178939) 
!                                     Fortran 2003 R528
!                                     Fortran 2008 R538
      type t
       integer g
      end type 
      type(t) u
      data (u%g,j=1,1) /1/! violates R536: data-i-do-object cannot be a scalar
      data (ii,j=1,1) /1/ ! ditto
      end


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

* [Bug fortran/50542] gfortran should detect violation of Fortran   95 R536 (r178939)
  2011-09-27 14:29 [Bug fortran/50542] New: gfortran should detect violation of Fortran 95 R536 (r178939) zeccav at gmail dot com
@ 2013-06-22 15:17 ` dominiq at lps dot ens.fr
  2021-02-27  8:58 ` zeccav at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-22 15:17 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-06-22
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Still present at revision 200321.


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

* [Bug fortran/50542] gfortran should detect violation of Fortran 95 R536 (r178939)
  2011-09-27 14:29 [Bug fortran/50542] New: gfortran should detect violation of Fortran 95 R536 (r178939) zeccav at gmail dot com
  2013-06-22 15:17 ` [Bug fortran/50542] " dominiq at lps dot ens.fr
@ 2021-02-27  8:58 ` zeccav at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: zeccav at gmail dot com @ 2021-02-27  8:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
Still present in version 11.

The compilers NAG nagfor and Intel ifort detect the issue.

ifort -S -w gfbug82.f -warn stderrors
gfbug82.f(9): error #8252: A DATA implied-DO variable must be an array element
or scalar structure component that has at least one subscript list.
      data (u%g,j=1,1) /1/! violates R536: data-i-do-object cannot be a scalar
------------^
gfbug82.f(10): error #8252: A DATA implied-DO variable must be an array element
or scalar structure component that has at least one subscript list.
      data (ii,j=1,1) /1/ ! ditto
------------^
compilation aborted for gfbug82.f (code 1)
[vitti f95]$nagfor -S -w gfbug82.f
NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042
Error: gfbug82.f, line 10: Syntax error
       detected at II@,
[NAG Fortran Compiler pass 1 error termination, 1 error]

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

end of thread, other threads:[~2021-02-27  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27 14:29 [Bug fortran/50542] New: gfortran should detect violation of Fortran 95 R536 (r178939) zeccav at gmail dot com
2013-06-22 15:17 ` [Bug fortran/50542] " dominiq at lps dot ens.fr
2021-02-27  8:58 ` zeccav at gmail dot com

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