Migration Compaq to Intel Fortran

Migration Compaq to Intel Fortran

Ritratto di Guilherme S.

Hi, 

I´m migration an application Compaq to Intel Fortran...

After extraction the code in Visual Studio, the only build error I found was a "dot" in one funcion call. (I think the print screen attached can provide a better understanding ) Removing the "dot" in Intel Fortran was enough to perform a successful build.

What I really don't know is what this syntax means in Compaq fortran and why the compiler did not sign that line as an error. I'm afraid that removing this line may remove some of the applications functionality

AllegatoDimensione
Scarica dfsfsdfsdfdsfds.bmp338.3 KB
9 post / 0 new
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Steve Lionel (Intel)

The dot has no meaning in this context in Compaq Fortran and I would have expected CVF to give an error if that dot was in the statement field. Can you attach a sample source that compiles ok in CVF but not in Intel Fortran? What was the file name (did it end in .f90 or .for or .f?)

Steve
Ritratto di Lorri Menard (Intel)

It's probably not an actual "." ... it is more likely an unprintable character that CVF ignored.

The underlying code to read a users' file changed between CVF and Intel Fortran, and it's possible that something that previously ignored is no longer ignored.

     --Lorri

Ritratto di Steve Lionel (Intel)

Guilherme sent me the actual source, and to my astonishment, the character really is a normal ASCII period. Nevertheless, that's not legal Fortran syntax (where it was used) and if CVF didn't detect an error, that was a CVF bug. Dots have been a sore point for this compiler's parser forever, and I suspect this is just one aspect of that. We have fixed a number of bugs in this area over the years, so this was another bug we fixed, allowing the error to be reported.

Intel Fortran should compile any legal source that CVF could compile. It will, however, detect MANY errors CVF didn't.

Steve
Ritratto di Guilherme S.

thank you guys!

ps: google usualy pays $1K dollars for every bug an user finds... :-)  just kidding...

Ritratto di Steve Lionel (Intel)

So you are going to pay us $1K for each of those dots?

Steve
Ritratto di Guilherme S.

hehehe, I´m not that rich :-)

Ritratto di lklawrie

Wonder if the dot gets confused in the parser because it's one of the "alternatives" for derived type %?  or the old "Structure" extension.

Linda
Ritratto di Steve Lionel (Intel)

Yes, that's the aspect that has given us many headaches over the years. Haven't seen a new one in quite a while, though.

Steve

Accedere per lasciare un commento.