public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared
@ 2005-08-22 16:22 federico dot carminati at cern dot ch
  2005-08-22 16:59 ` [Bug fortran/23516] " kargl at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: federico dot carminati at cern dot ch @ 2005-08-22 16:22 UTC (permalink / raw)
  To: gcc-bugs

The following code does not compile

      program bug
      implicit none
      double complex blop
      double precision blopr
      blopr=imag(blop)
      blopr=sin(blop)
      end

removing "implicit none" will let the code to compile. The compiler accepts sin as a generic function but 
not imag.

-- 
           Summary: IMAG is not a generic function when implicit none is
                    declared
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: federico dot carminati at cern dot ch
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: darwin Kernel Version 7.8.0; root:xnu/xnu-
                    517.11.1.obj~1/RELEASE


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
@ 2005-08-22 16:59 ` kargl at gcc dot gnu dot org
  2005-08-30 15:08 ` fxcoudert at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-08-22 16:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-08-22 16:47 -------
IMAG() is neither a generic intrinsic procedure nor a specific
intrinsic procedure.  You want AIMAG() or you need to explicitly
declare IMAG() and provide a function.

-- 


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
  2005-08-22 16:59 ` [Bug fortran/23516] " kargl at gcc dot gnu dot org
@ 2005-08-30 15:08 ` fxcoudert at gcc dot gnu dot org
  2005-09-16 18:46 ` kargl at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-08-30 15:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-08-30 15:02 -------
Well, this is not standard Fortran but g77 accepts it (and all the compilers I
can find accept it). So, I think we should add a generic IMAG for GFC_STD_GNU.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   GCC host triplet|darwin Kernel Version 7.8.0;|
                   |root:xnu/xnu-               |
                   |517.11.1.obj~1/RELEASE      |
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-30 15:02:31
               date|                            |


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
  2005-08-22 16:59 ` [Bug fortran/23516] " kargl at gcc dot gnu dot org
  2005-08-30 15:08 ` fxcoudert at gcc dot gnu dot org
@ 2005-09-16 18:46 ` kargl at gcc dot gnu dot org
  2005-09-22 19:00 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-09-16 18:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kargl at gcc dot gnu dot org  2005-09-16 18:46 -------
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01004.html

-- 


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
                   ` (2 preceding siblings ...)
  2005-09-16 18:46 ` kargl at gcc dot gnu dot org
@ 2005-09-22 19:00 ` cvs-commit at gcc dot gnu dot org
  2005-09-22 19:06 ` cvs-commit at gcc dot gnu dot org
  2005-09-22 20:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-22 19:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-22 19:00 -------
Subject: Bug 23516

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kargl@gcc.gnu.org	2005-09-22 19:00:25

Modified files:
	gcc/fortran    : ChangeLog intrinsic.c intrinsic.h 
	                 intrinsic.texi iresolve.c simplify.c 

Log message:
	PR fortran/23516
	* intrinsic.c (add_function): Add IMAG, IMAGPART, and REALPART
	intrinsics.
	* intrinsic.h: Prototypes for gfc_simplify_realpart and
	gfc_resolve_realpart.
	* intrinsic.texi: Document intrinsic procedures.
	* simplify.c (gfc_simplify_realpart): New function.
	* irseolve.c (gfc_resolve_realpart): New function.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.564&r2=1.565
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.c.diff?cvsroot=gcc&r1=1.54&r2=1.55
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.h.diff?cvsroot=gcc&r1=1.32&r2=1.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/intrinsic.texi.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/iresolve.c.diff?cvsroot=gcc&r1=1.39&r2=1.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/simplify.c.diff?cvsroot=gcc&r1=1.31&r2=1.32



-- 


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
                   ` (3 preceding siblings ...)
  2005-09-22 19:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-22 19:06 ` cvs-commit at gcc dot gnu dot org
  2005-09-22 20:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-22 19:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-22 19:05 -------
Subject: Bug 23516

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kargl@gcc.gnu.org	2005-09-22 19:04:14

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: imag_1.f imag_2.f 

Log message:
	PR fortran/23516
	* gfortran.dg/imag_1.f: New test.
	* gfortran.dg/imag_2.f: Ditto.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6097&r2=1.6098
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/imag_1.f.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/imag_2.f.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/23516] IMAG is not a generic function when implicit none is declared
  2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
                   ` (4 preceding siblings ...)
  2005-09-22 19:06 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-22 20:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-22 20:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-22 20:28 -------
Fixed in 4.1.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-09-22 20:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-22 16:22 [Bug fortran/23516] New: IMAG is not a generic function when implicit none is declared federico dot carminati at cern dot ch
2005-08-22 16:59 ` [Bug fortran/23516] " kargl at gcc dot gnu dot org
2005-08-30 15:08 ` fxcoudert at gcc dot gnu dot org
2005-09-16 18:46 ` kargl at gcc dot gnu dot org
2005-09-22 19:00 ` cvs-commit at gcc dot gnu dot org
2005-09-22 19:06 ` cvs-commit at gcc dot gnu dot org
2005-09-22 20:28 ` pinskia 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).