This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20882] New: error needed
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Apr 2005 16:01:08 -0000
- Subject: [Bug fortran/20882] New: error needed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'
TYPE T1
INTEGER :: I
END TYPE T1
TYPE(T1), POINTER :: a
a=>TST(T1(0))
CONTAINS
PURE FUNCTION TST(A) RESULT(RES)
TYPE(T1), INTENT(IN), TARGET :: A
TYPE(T1), POINTER :: RES
RES=>A
END FUNCTION
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=20882