--- Comment #8 from janus at gcc dot gnu dot org 2009-01-15 22:56 ---
Created an attachment (id=17110)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17110&action=view)
patch
Here is a patch which fixes the testcases in comment #0, #1 and #7.
Dominique: Maybe you could check wheth
--- Comment #7 from domob at gcc dot gnu dot org 2009-01-13 19:47 ---
Created an attachment (id=17090)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17090&action=view)
Another test case
This seems to be yet another test triggering this ICE.
--
http://gcc.gnu.org/bugzilla/show
--- Comment #6 from burnus at gcc dot gnu dot org 2008-11-22 21:42 ---
See also test cases at:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e0d04d755453a2a5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38152
--- Comment #5 from dominiq at lps dot ens dot fr 2008-11-19 16:29 ---
On powerpc-apple-darwin9 I have the same kind of error as reported in comment
#4:
/var/folders/FK/FKCVPmNbH5SNynFQmqGomk+++TI/-Tmp-//cctJDhJw.s:21:non-relocatable
subtraction expression, "_procptr" minus "L00
--- Comment #4 from dominiq at lps dot ens dot fr 2008-11-18 19:54 ---
With the patches in comment #2 and #3, compiling the test in comment #0 on
i686-apple-darwin9 in 32 bit mode gives:
/var/tmp//ccMx60VC.s:13:non-relocatable subtraction expression, "_procptr"
minus "L001$pb"
/
--- Comment #3 from burnus at gcc dot gnu dot org 2008-11-17 00:01 ---
(In reply to comment #2)
> > By the way, the following also fails:
> The error is fixed by the following trivial patch:
Janus, do you plan to submit it?
* * *
Regarding the ICE, the following patch seems to work;
--- Comment #2 from janus at gcc dot gnu dot org 2008-11-16 18:59 ---
(In reply to comment #1)
> By the way, the following also fails:
>
> module m
> procedure(), pointer :: procptr
> end module m
>
> use m
> external foo
> procptr => foo
> end
>
> with Error: 'procptr' in the pointer
--- Comment #1 from domob at gcc dot gnu dot org 2008-11-16 09:27 ---
Daniel Kraft wrote:
> > I'm working out a test-case for PR 37779 and came across the following
> > program, which ICEs for today's trunk gfortran:
> >
> > SUBROUTINE test ()
> > IMPLICIT NONE
> > procptr => t