This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [ECOS] Re: casts to a type other than an integral or enumerationtype in a constant-expression
Jonathan Larmour wrote:
The warning is certainly misleading at best as an int is certainly an
integral type ;-). From a quick read of the C++ standard, I can't see
any problem with this code.
Actually, what's more, I believe this code works fine with GCC 3.2.1.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine