--- Comment #17 from pault at gcc dot gnu dot org 2008-10-11 10:02 ---
Fixed on trunk and 4.3
Thanks for the report, FX (I hope that you still keep an eye on the PRs!)
Paul
--
pault at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #16 from pault at gcc dot gnu dot org 2008-10-11 09:59 ---
Subject: Bug 35680
Author: pault
Date: Sat Oct 11 09:58:38 2008
New Revision: 141056
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141056
Log:
2008-10-11 Paul Thomas [EMAIL PROTECTED]
PR
--- Comment #15 from pault at gcc dot gnu dot org 2008-10-05 18:54 ---
Subject: Bug 35680
Author: pault
Date: Sun Oct 5 18:53:19 2008
New Revision: 140892
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140892
Log:
2008-10-05 Paul Thomas [EMAIL PROTECTED]
PR
--- Comment #14 from pault at gcc dot gnu dot org 2008-10-04 11:56 ---
(In reply to comment #13)
In fact the ICE is precisely due to the argument not being a restricted
expression, since the size of x and its kind are unavailable to the caller
and
the interfacing cannot be
--- Comment #12 from pault at gcc dot gnu dot org 2008-10-03 12:12 ---
(In reply to comment #11)
Happily, I have come to the conclusion that the code is invalid no matter which
order the declarations come in;
In a restricted expression... (7.1.6.2):
(7) A reference to an intrinsic
--- Comment #13 from dominiq at lps dot ens dot fr 2008-10-03 22:23 ---
Happily, I have come to the conclusion that the code is invalid no matter
which
order the declarations come in;
(a) a restricted expression or
(b) a variable whose properties inquired about are not
the
--- Comment #10 from pault at gcc dot gnu dot org 2008-10-02 15:20 ---
(In reply to comment #9)
As usual, the DEC manual puts in succinctly:
If MOLD is an array and SIZE is omitted, the result is a rank-one array. Its
size is the smallest that is possible to hold all of SOURCE.
This
--- Comment #11 from dominiq at lps dot ens dot fr 2008-10-02 15:48 ---
If the physical representation of the result is smaller than SOURCE, ...
From the xlf manual, I read this for scalar cases, i.e., transfer(x,i) with x
real(4) and i integer(8), or when size is given:
--- Comment #9 from dominiq at lps dot ens dot fr 2008-09-29 20:25 ---
Although I am not familiar with the gfortran code, gfc_array_size (mold, tmp)I
think the reason why gfortran.dg/transfer_array_intrinsic_4.f90 fails with the
patch in comment #6,
is because gfc_array_size (mold, tmp)
--- Comment #6 from pault at gcc dot gnu dot org 2008-09-28 19:33 ---
Created an attachment (id=16421)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16421action=view)
A tentative fix for this PR
This allows the testcase to compile and run correctly. I am now not sure if x
does
--- Comment #7 from pault at gcc dot gnu dot org 2008-09-28 19:48 ---
Why don't I take it too? :-)
paul
--
pault at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #8 from dominiq at lps dot ens dot fr 2008-09-28 20:49 ---
With the patch in comment #6, gfortran.dg/transfer_array_intrinsic_4.f90 fails:
/opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/transfer_array_intrinsic_4.f90:16.8:
ia = TRANSFER (s1, (/ 0_4 /))
1
Error:
--- Comment #5 from pault at gcc dot gnu dot org 2008-09-17 08:55 ---
(In reply to comment #4)
4.3.2 is released, changing milestones to 4.3.3.
Although this passes Lahey with only a warning that the return value is not
set, it manifestly is standard defying according to 7.1.6.2
A
--- Comment #4 from jsm28 at gcc dot gnu dot org 2008-08-27 22:03 ---
4.3.2 is released, changing milestones to 4.3.3.
--
jsm28 at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #3 from burnus at gcc dot gnu dot org 2008-07-22 12:11 ---
Analogously for:
integer foo(size([x]))
real x
As ifort writes:
error #6279: A specification expression object must be a dummy argument, a
COMMON block object, or an object accessible through host or use
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Target Milestone|--- |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35680
--- Comment #1 from pault at gcc dot gnu dot org 2008-03-25 20:45 ---
g95 correctly gives:
In file pr35680.f90:5
integer foo(size(transfer(x, [1])))
1
Error: Variable 'x' cannot appear in restricted expression at (1)
Lahey gives:
1175-S:
--
burnus at gcc dot gnu dot org changed:
What|Removed |Added
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35680
18 matches
Mail list logo