public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33229]  New: ICE with "intrinsic" plus calling a subroutine as function
@ 2007-08-29 15:12 burnus at gcc dot gnu dot org
  2007-09-23  9:41 ` [Bug fortran/33229] " fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-29 15:12 UTC (permalink / raw)
  To: gcc-bugs

The following invalid program gives a memory access error. Note, without
INTRINSIC or with IMPLICIT NONE, everything works as expected.

intrinsic cpu_time
real :: time
print *, CPU_TIME(TIME)
end


-- 
           Summary: ICE with "intrinsic" plus calling a subroutine as
                    function
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

* [Bug fortran/33229] ICE with "intrinsic" plus calling a subroutine as function
  2007-08-29 15:12 [Bug fortran/33229] New: ICE with "intrinsic" plus calling a subroutine as function burnus at gcc dot gnu dot org
@ 2007-09-23  9:41 ` fxcoudert at gcc dot gnu dot org
  2008-08-30  3:00 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-09-23  9:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-23 09:41:31
               date|                            |


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


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

* [Bug fortran/33229] ICE with "intrinsic" plus calling a subroutine as function
  2007-08-29 15:12 [Bug fortran/33229] New: ICE with "intrinsic" plus calling a subroutine as function burnus at gcc dot gnu dot org
  2007-09-23  9:41 ` [Bug fortran/33229] " fxcoudert at gcc dot gnu dot org
@ 2008-08-30  3:00 ` kargl at gcc dot gnu dot org
  2008-09-06 15:14 ` burnus at gcc dot gnu dot org
  2008-09-06 15:57 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-08-30  3:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2008-08-30 02:58 -------
I may have a patch for this problem.  Note, there is an ambiguity
due to a set of intrinsics such as ETIME, which has both a function
form and a subroutine form.


-- 


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


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

* [Bug fortran/33229] ICE with "intrinsic" plus calling a subroutine as function
  2007-08-29 15:12 [Bug fortran/33229] New: ICE with "intrinsic" plus calling a subroutine as function burnus at gcc dot gnu dot org
  2007-09-23  9:41 ` [Bug fortran/33229] " fxcoudert at gcc dot gnu dot org
  2008-08-30  3:00 ` kargl at gcc dot gnu dot org
@ 2008-09-06 15:14 ` burnus at gcc dot gnu dot org
  2008-09-06 15:57 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-09-06 15:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2008-09-06 15:12 -------
Subject: Bug 33229

Author: burnus
Date: Sat Sep  6 15:11:29 2008
New Revision: 140061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140061
Log:
2008-09-06  Steven G. Kargl  <kargls@comcast.net>

        PR fortran/33229
        * resolve.c (resolve_function): An intrinsic subroutine should
        * not be
        called as a function.

2008-09-06  Steven G. Kargl  <kargls@comcast.net>

        PR fortran/33229
        * gfortran.dg/intrinsic_subroutine.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/intrinsic_subroutine.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/33229] ICE with "intrinsic" plus calling a subroutine as function
  2007-08-29 15:12 [Bug fortran/33229] New: ICE with "intrinsic" plus calling a subroutine as function burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-09-06 15:14 ` burnus at gcc dot gnu dot org
@ 2008-09-06 15:57 ` burnus at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-09-06 15:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2008-09-06 15:55 -------
FIXED on the trunk (4.4.0)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-09-06 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 15:12 [Bug fortran/33229] New: ICE with "intrinsic" plus calling a subroutine as function burnus at gcc dot gnu dot org
2007-09-23  9:41 ` [Bug fortran/33229] " fxcoudert at gcc dot gnu dot org
2008-08-30  3:00 ` kargl at gcc dot gnu dot org
2008-09-06 15:14 ` burnus at gcc dot gnu dot org
2008-09-06 15:57 ` burnus 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).