public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code?
@ 2004-12-04  8:22 Andrew Walrond
  2004-12-04 17:56 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Walrond @ 2004-12-04  8:22 UTC (permalink / raw)
  To: gcc

Is this a bug, or broken code?

 enum state { HELLO, MUM };

 int main()
 {
    enum state __attribute__ ((mode (__byte__))) a;
    a = HELLO;
    return 0;
 }


Compiles fine with 3.4.2, but 3.4.3 gives

 test.c: In function `main':
 test.c:6: error: mode `byte' applied to inappropriate type

Andrew Walrond

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code?
  2004-12-04  8:22 Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code? Andrew Walrond
@ 2004-12-04 17:56 ` Richard Henderson
  2004-12-04 18:34   ` Andrew Walrond
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2004-12-04 17:56 UTC (permalink / raw)
  To: Andrew Walrond; +Cc: gcc

On Sat, Dec 04, 2004 at 08:22:13AM +0000, Andrew Walrond wrote:
> Compiles fine with 3.4.2, but 3.4.3 gives

Is accepted by 3.4.2, but doesn't do what you think it does.
Working attribute mode on enumeration is a new feature of 4.0.


r~

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code?
  2004-12-04 17:56 ` Richard Henderson
@ 2004-12-04 18:34   ` Andrew Walrond
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Walrond @ 2004-12-04 18:34 UTC (permalink / raw)
  To: gcc; +Cc: Richard Henderson

On Saturday 04 Dec 2004 17:55, Richard Henderson wrote:
> On Sat, Dec 04, 2004 at 08:22:13AM +0000, Andrew Walrond wrote:
> > Compiles fine with 3.4.2, but 3.4.3 gives
>
> Is accepted by 3.4.2, but doesn't do what you think it does.
> Working attribute mode on enumeration is a new feature of 4.0.
>

Thanks Richard. I'll report it to the guys at Isc (dhcp) since this is where 
it cropped up. They had it marked down as a gcc bug and hence didn't intend 
to fix it.

Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-04 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-04  8:22 Gcc 3.4.2 -> 3.4.3 change of behaviour; Bug or broken code? Andrew Walrond
2004-12-04 17:56 ` Richard Henderson
2004-12-04 18:34   ` Andrew Walrond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).