Bug#177041: g++-3.2: bison output not compilable with g++-3.2 due to __atttribute__((__unused__))
Package: g++-3.2
Version: 1:3.2.2-0pre5
Severity: normal
Tags: upstream
Occasionally it is useful to compile the output of bison with C++.
However, bison output contains the following lines:
>yyerrlab1:
>
> /* Suppress GCC warning that yyerrlab1 is unused when no action
> invokes YYERROR. */
>#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
> __attribute__ ((__unused__))
>#endif
This compiles fine with gcc, but with g++ the error
> parse error before `goto'
is given. I believe that earlier versions of g++-3.2, and certainly
earlier versions of g++, compiled this code with no problems.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux giynz 2.4.20 #4 SMP Sun Dec 22 18:30:02 PST 2002 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages g++-3.2 depends on:
ii gcc-3.2 1:3.2.2-0pre5 The GNU C compiler
ii gcc-3.2-base 1:3.2.2-0pre5 The GNU Compiler Collection (base
ii libc6 2.3.1-9 GNU C Library: Shared libraries an
ii libstdc++5-dev 1:3.2.2-0pre5 The GNU Standard C++ Library v3 (d
-- no debconf information
Reply to: