I installed this to quiet an older GCC warning.  I'm not a C++ expert
and I'm sure there's a nicer and more-efficient workaround somehow....

2006-02-01  Paul Eggert  <[EMAIL PROTECTED]>

        Work around portability problems summarized by Nelson H. F. Beebe in
        <http://lists.gnu.org/archive/html/bug-bison/2005-09/msg00021.html>.

        * data/lalr1.cc (yytranslate_): No longer inline, to work around a
        porting problem to g++ 3.4.3 on Darwin 7.9.0, where g++ complained
        "warning: sorry: semantics of inline function static data `const
        unsigned char translate_table[262]' are wrong (you'll wind up with
        multiple copies)".

--- lalr1.cc.~1.122.~   2006-01-23 00:39:52.000000000 -0800
+++ lalr1.cc    2006-02-01 21:12:45.000000000 -0800
@@ -248,7 +248,7 @@ b4_error_verbose_if([, int tok])[);
 #endif
 
     /// Convert a scanner token number to a symbol number.
-    inline token_number_type yytranslate_ (int token);
+    token_number_type yytranslate_ (int token);
 
     /// \brief Reclaim the memory associated to a symbol.
     /// \param yymsg        Why this token is reclaimed.


Reply via email to