[Bug fortran/13615] -Wuninitialized produces wrong error message for characters
mikael at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 25 13:58:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
CC| |mikael at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #13 from Mikael Morin <mikael at gcc dot gnu.org> ---
gfortran outputs with the original testcase:
$ gfortran comment_0.f -O -Wall
comment_0.f: In function 'warn_integer':
comment_0.f:17:0: warning: 'a' is used uninitialized in this function
[-Wuninitialized]
comment_0.f: In function 'warn_character':
comment_0.f:31:0: warning: 'c[1]{lb: 1 sz: 1}' is used uninitialized in this
function [-Wuninitialized]
-Wall is necessary to trigger the warning, but now 'c' is correctly diagnosed
as unitialized. Closing as FIXED.
More information about the Gcc-bugs
mailing list