This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18565] gfortran: CONJG: false error message about standard violation
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2005 03:23:30 -0000
- Subject: [Bug fortran/18565] gfortran: CONJG: false error message about standard violation
- References: <20041119130711.18565.anlauf@hep.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2005-01-27 03:23 -------
FX,
The first of errors with COS() and friends is caused by marking
DCOS as GFC_STD_F77, which apparent is not a subset of GFC_STD_F95.
You did not show the code that gives the second set of errors,
but I can guess. It looked something like
implicit none
complex(8) z
z = (1.d0,1.d0)
print *, dimag(z)
end
If you compile with -std=f95 and dimag() is not a specific name
for the generic function aimag, then the errors you give are
indeed correct. The reason is that dimag is not added to the
list of intrinsics so gfortran does not know about it and you
specified implicit none.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18565