In stddef.h, __GNUG__ appears to be undefined while size_t is defined so that
this will fail:

#if !(defined (__GNUG__) && defined (size_t))
typedef __SIZE_TYPE__ size_t;

Compiler invocation:

gcc -DHAVE_CONFIG_H -I. -I. -I. -Iinclude    -m32  -O2  -Wall -MT
antlr3basetree.lo -MD -MP -MF ".deps/antlr3basetree.Tpo" -c -o
antlr3basetree.lo `test -f 'src/antlr3basetree.c' || echo
'./'`src/antlr3basetree.c; 

Compiler output:

In file included from /usr/include/stdio.h:34,
                 from include/antlr3defs.h:219,
                 from include/antlr3basetree.h:37,
                 from src/antlr3basetree.c:1:
/usr/lib/gcc/x86_64-linux-gnu/4.4.4/include/stddef.h:211: error: duplicate
‘unsigned’
/usr/lib/gcc/x86_64-linux-gnu/4.4.4/include/stddef.h:211: error: two or more
data types in declaration specifiers

Preprocessor output:

# 211 "/usr/lib/gcc/x86_64-linux-gnu/4.4.4/include/stddef.h" 3 4
typedef unsigned int unsigned int;

Output of gcc -v:

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.4-6'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--with-arch-32=i586 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.4 (Debian 4.4.4-6)


-- 
           Summary: size_t typedef failure
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aj at member dot fsf dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44961

Reply via email to