[SOLVED] Re: wrong code generated in gcc-4.1.1?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> Below sample program produced wrong code in g++ version 4.1.1.
> Is this a bug or am I violating C++ standard?
> (not taking range propagation into account?)

It was due to my lack of knowledge, "Programming Language C++ 3rd ed."
said assignment to enum which is out of range is undefined,
(or something like that in Japanese...), so it is not g++ generating
wrong code. Sorry for noice.


Best Regards,

(Hiroki Kaminaga)
t
--

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux