I've recently updated to bison-2.7 and my code stopped compiling. The reason is 
__attribute__((__unused__)) applied to yy_location_print_ - it fails to compile 
in Visual Studio (the *.y file was compiled into *.cpp under Windows using 
bison-2.7 coming with CYGWIN). The problematic code emitted by bison is as 
follows (note that the attribute is not guarded by the _MSC_VER macro):

__attribute__((__unused__))
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static unsigned
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
#else
static unsigned
yy_location_print_ (yyo, yylocp)
    FILE *yyo;
    YYLTYPE const * const yylocp;
#endif
{
...
}

Reply via email to