Error with mcmodel=medium

Hello all. I am having some problems with the flag -mcmodel=medium, listed below:
++++++++++++++++
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer8 [ast=10,asttype=1,datatype=0]
Lowering Error: unknown source type for conversion to integer
8 [ast=10,asttype=1,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer8 [ast=10,asttype=1,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer
8 [ast=10,asttype=1,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer8 [ast=10,asttype=1,datatype=0]
Lowering Error: unknown source type for conversion to integer
8 [ast=10,asttype=1,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer8 [ast=10,asttype=1,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unexpected data type at load [ast=0,asttype=0,datatype=0]
Lowering Error: unknown source type for conversion to integer
8 [ast=10,asttype=1,datatype=0]
Lowering Error: unknown source type for conversion to integer*8 [ast=10,asttype=1,datatype=0]
PGF90-F-0000-Internal compiler error. Errors in Lowering 19 (./output/escwv.f90: 84)
PGF90/any Linux/x86-64 6.2-5: compilation aborted
pgf90-Fatal-f901 completed with exit code 1

++++++++++++++++
The compiler is PGI 6.2 (pfg90) on an amd64 X2 and running ubuntu edgy. I had exactly the same problem with 6.0. I am using acml 3.5.0 and -fast -Mprefetch=w -Mipa=fast -Munroll options (but removing any of these solved the problem, only mcmodel=medium).
Did anyone experienced this?

Thank you

Hello ispmarin,

Can you please send a report and sample code to trs@pgroup.com? “Lowering errors” is a generic problem with the Fortran front with no one cause.

Thanks,
Mat