Article View: gnu.gcc.bug
Article #2770gcc/g++ note 12178901 - better error messages needed
From: rfg
Date: Sun, 17 Dec 1989 20:35
Date: Sun, 17 Dec 1989 20:35
28 lines
1478 bytes
1478 bytes
In the following error messages, it would be more helpful to have the
line number of the previous *definition* of the variable in question
indicated, rather than the previous *declaration* (which is unimportant).
This affects GCC 1.36 and G++ 1.36.1.
Script started on Sun Dec 17 12:26:02 1989
ics>att nl -ba gcc-note-12178901.c
1
2 int multiple = 99;
3
4 int multiple;
5
6 int multiple = 77;
ics>gcc -v -c gcc-note-12178901.c
gcc version 1.36
/usr/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dunix -Di386 -Dsequent -D__unix__ -D__i386__ -D__sequent__ gcc-note-12178901.c /usr/tmp/cc008774.cpp
GNU CPP version 1.36
/usr/gnu/lib/gcc-cc1 /usr/tmp/cc008774.cpp -quiet -dumpbase gcc-note-12178901.c -version -o /usr/tmp/cc008774.s
GNU C version 1.36 (80386, BSD syntax) compiled by GNU C version 1.36.
default target switches: -m80387
gcc-note-12178901.c:6: redefinition of `multiple'
gcc-note-12178901.c:4: here is the previous declaration of `multiple'
ics>exit
exit
script done on Sun Dec 17 12:27:06 1989
Technical Details
Message-ID:
<8912171235.aa08889@ICS.UCI.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfg From: rfg@ICS.UCI.EDU Newsgroups: gnu.gcc.bug Subject: gcc/g++ note 12178901 - better error messages needed Message-ID: <8912171235.aa08889@ICS.UCI.EDU> Date: 17 Dec 89 20:35:06 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28