http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-14 13:14:34 UTC --- (In reply to comment #4) > Is there a fix for this or is this version flawed? Can we be certain this bug > will be fixed by the next release? This is a basic declaration and should > work. Read the bugzilla report. It's not a bug, it's an enhancement request for a better error message. The compiler is correct to reject your code, but it could print a more helpful message. Your problem appears to be caused by failing to #include <stdint.h>, not a compiler bug.