Is it possible to compile a fortran 90/95 code in gfortran with Case Sensitive? I searched the manuals, but couldn't find any flag or option I can give to gfortran to make it case sensitive. I want to have variables in upper case and lower case to be different.
So, is it possible?
Fortran is case-insensitive.
Except for strings, Fortran 90 is not case sensitive.
C and Fortran take opposite perspectives on case sensitivity: C is case sensitive--case matters. Fortran ignores case.
You may wish to mix case, but Fortran is not case-sensitive, so "X" and "x" are the same variable.
There is no such flag or option. Of course, gfortran being free software, you're welcome to download the source code and create your own version with that particular feature.
In reality, I'd recommend to just follow the Fortran standard and forget the idea of case sensitivity when programming Fortran.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With