public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20899] New: error needed
@ 2005-04-08 16:06 jv244 at cam dot ac dot uk
  2005-05-19 17:53 ` [Bug fortran/20899] pure function may not modify common variable through equivalence tobi at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 16:06 UTC (permalink / raw)
  To: gcc-bugs

The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'


common /z/ i
contains
pure integer function test(j)
  integer, intent(in) :: j
  common /z/ i
  integer :: k
  equivalence(i,k)
  k=1
  test=i*j
end function test
end

-- 
           Summary: error needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-20899-6642@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-12  5:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 16:06 [Bug fortran/20899] New: error needed jv244 at cam dot ac dot uk
2005-05-19 17:53 ` [Bug fortran/20899] pure function may not modify common variable through equivalence tobi at gcc dot gnu dot org
2005-09-26 19:33 ` pault at gcc dot gnu dot org
2005-10-01  7:40 ` cvs-commit at gcc dot gnu dot org
2005-10-01 15:57 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20899-6642@http.gcc.gnu.org/bugzilla/>
2005-10-12  5:43 ` cvs-commit at gcc dot gnu dot 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).