[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659 Don donmgeso at hotmail dot com changed: What|Removed |Added CC||donmgeso at hotmail dot com --- Comment #3 from Don donmgeso at hotmail dot com 2011-10-14 13:06:51 UTC --- Found this bug while trying to compile Spidermonkey 1.85 with gcc 4.6 (g++). nanojit.h:183:26: error: 'isS32' declared as an 'inline' variable. The code is: static inline bool isS32(intptr_t i) { return int32_t(i) == i; } Is there a fix for this or is this version flawed? Can we be certain this bug will be fixed by the next release?
[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659 --- Comment #4 from Don donmgeso at hotmail dot com 2011-10-14 13:11:09 UTC --- Found this bug while trying to compile Spidermonkey 1.85 with gcc 4.6 (g++). nanojit.h:183:26: error: 'isS32' declared as an 'inline' variable. The code is: static inline bool isS32(intptr_t i) { return int32_t(i) == i; } 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.
[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
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.
[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659 --- Comment #6 from Don donmgeso at hotmail dot com 2011-10-14 14:13:59 UTC --- Yeah.., soon realized that after looking into it. Thanks.
[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659 Dan Horak dan at danny dot cz changed: What|Removed |Added CC||dan at danny dot cz --- Comment #2 from Dan Horak dan at danny dot cz 2010-11-15 11:08:36 UTC --- Still present in 4.5.1, real world example from building xulrunner 2.0 on Fedora/s390x jsval.h:524:22: error: 'JSVAL_IS_DOUBLE_IMPL' declared as an 'inline' variable jsval.h:524:22: warning: 'always_inline' attribute ignored jsval.h:524:22: error: 'jsval_layout' was not declared in this scope jsval.h:525:1: error: expected ',' or ';' before '{' token jsval.h:529:25: error: 'jsval_layout' does not name a type
[Bug c++/36659] Confusing error message order 'error: ‘functionname’ declared as an ‘inline’ variable'
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-06-28 21:25 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||diagnostic Known to fail||4.4.0 Last reconfirmed|-00-00 00:00:00 |2008-06-28 21:25:32 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659