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.
Description: This is a digitally signed message part