Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data statement

Status
Not open for further replies.

BGKirkham

Programmer
Mar 22, 2020
2
US
I’m using gfortran to compile some old legacy code. There is one statement that isn’t compiling where characters are being put into an integer variable. This was perfectly fine back in the day. The statement looks like this

DATA IBLK/‘ ‘/

I don’t want to mod the code if I don’t have to. Is there a compiler option that will allow this to compile?
 
This fixed it

DATA IBLK/3H /

Also compiled with -std=legacy.

 
Looks like the wrong sort of quotes. Should be ' (the one below @ on UK kbd, " on US kbd) not `
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top