https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44044
Bug 44044 depends on bug 38936, which changed state.
Bug 38936 Summary: [F03] ASSOCIATE construct / improved SELECT TYPE (a=>expr)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38936
What|Removed |Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44044
janus at gcc dot gnu.org changed:
What|Removed |Added
Target Milestone|--- |4.6.0
--- Comment #9 from domob at gcc dot gnu dot org 2010-09-23 08:38 ---
Subject: Bug 44044
Author: domob
Date: Thu Sep 23 08:37:54 2010
New Revision: 164550
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164550
Log:
2010-09-23 Daniel Kraft d...@domob.eu
PR fortran/38936
--- Comment #10 from domob at gcc dot gnu dot org 2010-09-23 08:39 ---
This implemented bonus feature #2 from comment #3. Closing now.
--
domob at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #8 from burnus at gcc dot gnu dot org 2010-08-27 07:30 ---
(In reply to comment #7)
So the only ToDo item left here is comment #3.
Which is C836, i.e. checking invalid use of the selector in a variable
definition context.
This will probably be fixes as part of PR 38936
--- Comment #6 from janus at gcc dot gnu dot org 2010-05-17 08:25 ---
Subject: Bug 44044
Author: janus
Date: Mon May 17 08:25:06 2010
New Revision: 159476
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159476
Log:
2010-05-17 Janus Weil ja...@gcc.gnu.org
PR
--- Comment #7 from janus at gcc dot gnu dot org 2010-05-17 08:31 ---
Comment #0 and #1 are fixed at this point. I think the runtime checking in
comment #2 one can ignore for the moment, since most usage cases of ordinary
pointers are also not checked for.
So the only ToDo item left
--- Comment #4 from burnus at gcc dot gnu dot org 2010-05-10 10:05 ---
(In reply to comment #2)
... should give a runtime error, since fun(0) evaluates to NULL.
F08 section 16.5.1.6 demands that, if the selector is a pointer, it should be
associated.
In the same way, having an
--- Comment #5 from janus at gcc dot gnu dot org 2010-05-10 12:54 ---
Subject: Bug 44044
Author: janus
Date: Mon May 10 12:54:25 2010
New Revision: 159217
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159217
Log:
2010-05-10 Janus Weil ja...@gcc.gnu.org
PR
--
janus at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |janus at gcc dot gnu dot org
|dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-05-08 20:13 ---
Side note: Invalid code like
function fun()
class(t1) :: fun
end function
is not rejected, although the polymorphic 'fun' is neither a pointer,
allocatable nor a dummy.
--
--- Comment #2 from janus at gcc dot gnu dot org 2010-05-08 20:20 ---
Bonus feature #1:
Adding this to comment #0 ...
select type ( y = fun(0) )
type is (t1)
print *,t1
type is (t2)
print *,t2
class default
print *,default
end select
... should give a runtime error, since
--- Comment #3 from janus at gcc dot gnu dot org 2010-05-08 20:23 ---
Bonus feature #2:
select type ( y = fun(1) )
type is (t1)
y%i = 1
type is (t2)
y%i = 2
end select
... should be rejected, due to (F08):
C836 (R847) If selector is not a variable or is a variable that has a
13 matches
Mail list logo