This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27327] Warn or give error, when common blocks don't match
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2006 16:46:13 -0000
- Subject: [Bug fortran/27327] Warn or give error, when common blocks don't match
- References: <bug-27327-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tobi at gcc dot gnu dot org 2006-04-26 16:46 -------
Works for me, even though the warning could be a bit more verbose. Should this
really be a default warning?
schluter@pcl247d:~/src/pr/27327> gfortran t.f90 -Wall -c
t.f90: In function 'opt1':
t.f90:1: warning: unused variable 'ib'
In file t.f90:8
COMMON /INTNEW/ V,EPS,BEGIN,STEP,PP,DOM,PIMEAN,AA,A0,BB,B0,PI0,G,G1,G2
1
Warning: Named COMMON block 'intnew' at (1) shall be of the same size
t.f90: In function 'opt0':
t.f90:6: warning: unused variable 'numb'
t.f90:6: warning: unused variable 'e0'
t.f90:6: warning: unused variable 'h0'
t.f90:6: warning: unused variable 'p0'
t.f90:6: warning: unused variable 'x'
t.f90:6: warning: unused variable 'y'
schluter@pcl247d:~/src/pr/27327>
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27327