Bug#417061: holotz-castle: Use of static_assert, FTBFS with gcc-4.3

Ben Hutchings ben at decadent.org.uk
Fri Feb 29 00:45:08 UTC 2008


On Thu, 2008-02-28 at 23:33 +0100, Cyril Brulebois wrote:
> Hi Ben,
> 
> some time ago, you kindly provided a patch for #357897, but
> unfortunately, the use of static_assert in the following code now
> triggers an FTBFS with gcc-4.3:
> | typedef char static_assert[sizeof(u32) == sizeof(float) ? 1 : -1 ];

Yes, that was a bad choice of name of my part.

> I guess I could replace that token with another, and use a #define but
> there's probably a better way to do this.
<snip>

The better way, in the long term, will be to write something like:
    static_assert(sizeof(u32) == sizeof(float));

However, since static_assert hasn't yet been implemented in gcc, that
will not work today.  I think you should change the type name or remove
the assertion.

Ben.

-- 
Ben Hutchings
Q.  Which is the greater problem in the world today, ignorance or apathy?
A.  I don't know and I couldn't care less.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20080229/bffe9ffa/attachment.pgp 


More information about the Pkg-games-devel mailing list