Article View: gnu.gcc.bug
Article #477GNU C bug
From: Phil Hochstetler
Date: Mon, 17 Jul 1989 21:30
Date: Mon, 17 Jul 1989 21:30
23 lines
980 bytes
980 bytes
Version of GNU CC: gcc version 1.35
Input file:
/* GNU C compiler fails to flag the type mismatch between enums */
main()
{
enum option { oHEAD, oMIDDLE, oTAIL};
enum again {one, two, three};
enum option try2;
enum again try3;
try2 = oTAIL;
try3 = three;
if (try2 == try3) /* compiler should complain */
exit(1);
}
Compiled via: gcc -g -o foo foo.c
tm.h and md file: md -> config/i386.md
tm.h -> config/tm-seq386.h
type of machine: Sequent SYMMETRY
OS name and version: DYNIX(R) V3.0.15
Bad behavior: Should complain about enum type mismatch, but does not.
Technical Details
Message-ID:
<8907172133.AA18618@decwrl.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!DECWRL.DEC.COM!sequent!philShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!DECWRL.DEC.COM!sequent!phil From: sequent!phil@DECWRL.DEC.COM (Phil Hochstetler) Newsgroups: gnu.gcc.bug Subject: GNU C bug Message-ID: <8907172133.AA18618@decwrl.dec.com> Date: 17 Jul 89 21:30:35 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23