This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36659] Confusing error message order 'error: âfunctionnameâ declared as an âinlineâ variable'
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Oct 2011 13:14:34 +0000
- Subject: [Bug c++/36659] Confusing error message order 'error: âfunctionnameâ declared as an âinlineâ variable'
- Auto-submitted: auto-generated
- References: <bug-36659-4@http.gcc.gnu.org/bugzilla/>
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.