This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066


Btw, this is now known as PR54730 in Bugzilla:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54730

Cheers,
Janus



2012/9/27 Janus Weil <janus@gcc.gnu.org>:
> Dear Paul,
>
>> Compiling the attached example code, got the error:
>> -------------------------------------------------
>> plainf95_test_klammer.1.f90: In function 'myroutine':
>> plainf95_test_klammer.1.f90:3:0: internal compiler error: in
>> gfc_typenode_for_spec, at fortran/trans-types.c:1066
>
> thanks for reporting this. I can reproduce your error with gfortran
> 4.7.1 and trunk.
>
> Here is a minimal test case which is rejected with the same error
> (while apparently being valid F95):
>
>   implicit none
>   intrinsic :: real
>   real :: vec(1:2)
>   vec = (/ real(a = 1), 1. /)
> end
>
> Seems you have discovered a genuine F95 bug in gfortran (which I hope
> is becoming rather a rare species these days) ...
>
> Greetings from Giessen to Aachen,
> Janus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]