Article View: gnu.gcc.bug
Article #501gcc 1.35 dislikes #ifdef ecd.color
From: Ed Schwalenberg
Date: Thu, 27 Jul 1989 17:35
Date: Thu, 27 Jul 1989 17:35
19 lines
1129 bytes
1129 bytes
Date: Thu, 27 Jul 89 12:09:14 EDT
From: Webster Dove <rocket!hobbes!dove@uunet.uu.net>
Is that a gcc bug, or an ansi violation on suns part
/usr/include/suntool/panel.h:35: warning: garbage at end of #ifdef argument
/* new attributes should start at PANEL_LAST_ATTR + 1 */
#ifdef ecd.color
#define PANEL_LAST_ATTR 127
#else
#define PANEL_LAST_ATTR 125
#endif
It's not ANSI, it's not even K&R. The identifiers for #ifdef are the same
as C identifiers; they can't have '.' characters in them. That #ifdef has
been parsed by Sun's CC as #ifdef ecd, which just happened to "work".
Technical Details
Message-ID:
<19890727173541.1.ED@BLACK-BIRD.SCRC.Symbolics.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ALDERAAN.SCRC.SYMBOLICS.COM!EdReferences:
<8907271609.AA01705@hobbes.sanders.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ALDERAAN.SCRC.SYMBOLICS.COM!Ed From: Ed@ALDERAAN.SCRC.SYMBOLICS.COM (Ed Schwalenberg) Newsgroups: gnu.gcc.bug Subject: gcc 1.35 dislikes #ifdef ecd.color Message-ID: <19890727173541.1.ED@BLACK-BIRD.SCRC.Symbolics.COM> Date: 27 Jul 89 17:35:00 GMT References: <8907271609.AA01705@hobbes.sanders.com> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19