This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR34438 - gfortran not compliant w.r.t default initialization of derived type component and implicit SAVE attribute
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "Tobias Burnus" <burnus at net-b dot de>, "Dominique Dhumieres" <dominiq at lps dot ens dot fr>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Dec 2007 21:45:30 +0100
- Subject: Re: [Patch, fortran] PR34438 - gfortran not compliant w.r.t default initialization of derived type component and implicit SAVE attribute
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4U7MhDh4bF5CqVftpTLXxv7RSxNi8xGMrsd76yMB6Qc=; b=wAZPA5GUFZvAaIXwtOWlJwjDmIpUOVMC7fNztfPplgR2rQ6CbS9QT19af8jOgyYvVBWvvyd3nolbvsEyUCB0dPDkp7INXCPNqd4O1wfDQ6vDm0AcHwufDLKVL7kV2MXlHovVBEHiWGwzwTNePcjvDWUCq5JkrUG4yUMTCTzLZ1M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YEoNycPjubtYVLvzx96JNLzGCsKG5d659WUwt65Djumrx7pFrZLwJ3lbJioCGXNfCmw1dgRA07pemDeU4Ooe25/lnkimHi/keaQTAcJ27bSwz6TwZXeKIwE42QHrH7ijU/7pUfK/TRurSN3VRvfX2L36g5ZhgN/y0llLkHrikiI=
- References: <339c37f20712171142m260ae71fv6f3e8b1d2095b940@mail.gmail.com> <4766D8E7.6060607@net-b.de>
Dominique,
Get a life!
Why would somebody write something as awful as
MODULE M1
TYPE T1
INTEGER :: i=7
END TYPE T1
CONTAINS
FUNCTION F1(d1) RESULT(res)
INTEGER :: res
TYPE(T1), INTENT(OUT) :: d1
TYPE(T1), INTENT(INOUT) :: d2
res=d1%i
d1%i=0
RETURN
ENTRY E1(d2) RESULT(res)
res=d2%i
d2%i=0
END FUNCTION F1
END MODULE M1
USE M1
TYPE(T1) :: D1
D1=T1(3)
write(6,*) F1(D1)
D1=T1(3)
write(6,*) E1(D1)
END
?????
.... oh, alright then, I'll fix it:)
Paul