[Bug libfortran/41335] VOLATILE in Fortran does not take effect

denis_scherbakov at yahoo dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 11 15:10:00 GMT 2009



------- Comment #1 from denis_scherbakov at yahoo dot com  2009-09-11 15:10 -------
I studied the error a little bit more.

"volatile double precision a" declares a variable "doubleprecisiona" which is
not used.

"real, volatile :: a" works and produces expected result
"volatile :: a" works, but type is not specified

Does not work anything with <double precision>:
"double precision, volatile :: a"
"volatile :: a \n double precision :: a"
"double precision :: a \n volatile :: a"

Denis


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41335



More information about the Gcc-bugs mailing list