Updates:
        Status: Assigned
        Owner: [email protected]

Comment #1 on issue 2149 by [email protected]: STATIC_ASSERT fails to compile with GCC 4.8 due to -Werror=unused-local-typedefs
http://code.google.com/p/v8/issues/detail?id=2149

Thanks for the report! Although we don't test with gcc 4.8 for ourselves, having early feedback is quite valuable.

Looking at boost, it basically does the same thing we do: http://www.boost.org/doc/libs/1_49_0/boost/static_assert.hpp (which is not very surprising ;-). So I think the basic approach is still OK with gcc 4.8 and we should fix it differently. The problem with Scanner::Init seems to be that the STATIC_ASSERT is local to the function. Could you try moving it out of Init (e.g. just before it) and see if this fixes the problem? Perhaps there are other places with a similar problem, knowing them would be helpful.

BTW: Simply silencing warnings is more often than not a bad idea in the long run, so we should try to fix things instead.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to