"gfc_code2string(): Bad code" error for gfortran-4.3.2 on Darwin PPC

Chris Talley cst@cfdrc.com
Thu Sep 4 19:56:00 GMT 2008


By changing the line in dummy_mod.F from
 > logical (kind=1) :: MEMCHEKDONE = .false.
to
 > logical :: MEMCHEKDONE = .false.
the code compiles without an error.

What is the difference between a 'logical (kind=1)' and a 'logical'?

Thanks,

Chris Talley
Senior Aerospace Engineer
CFD Research Corporation
215 Wynn Drive
Huntsville, AL 35805
256-726-4835
cst at cfdrc dot com



On Sep 4, 2008, at 2:29 PM, Daniel Kraft wrote:

> Chris Talley wrote:
>> I have run into a "gfc_code2string(): Bad code" error for  
>> gfortran-4.3.2 on Darwin PPC that did not occur with  
>> gfortran-4.2.4. I am running a PowerMac Dual G5 with MacOS X  
>> 10.4.11. I have reproduced the error in the following simplified  
>> test case:
> [test code]
>> When compiled with the following commands:
>>  >gfortran-432 -ffree-form -c dummy_mod.F
>>  >gfortran-432 -ffree-form -c count_test.F
>
> Using gfortran-4.4 from today's SVN or gfortran-4.3.1, all compiles  
> without error using your commands on GNU/Linux-x86-32.  So seems to  
> be somthing specific to PPC.
>
> Daniel
>
> -- 
> Done:     Arc-Bar-Cav-Sam-Val-Wiz, Dwa-Elf-Gno-Hum-Orc, Law-Neu- 
> Cha, Fem-Mal
> To go:    Hea-Kni-Mon-Pri-Ran-Rog-Tou



More information about the Fortran mailing list