This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34227] New: initialized symbol in common: Better error message
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2007 19:51:40 -0000
- Subject: [Bug fortran/34227] New: initialized symbol in common: Better error message
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
character(len=3) :: emname(nmin)=(/'bar','baz'/)
common/nmstr/emname
end
currently gfortran prints:
Error: Previously initialized symbol 'emname' in COMMON block 'nmstr' at (1)
If find the error message of NAG f95 better, which mentions that BLOCK DATA can
be used:
Error: EMNAME has been initialised - can only be COMMON in BLOCK DATA
--
Summary: initialized symbol in common: Better error message
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34227