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

           Summary: gcc-4.6.0 regression with complex.h on
                    i386-pc-solaris2.10
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: mariah.le...@gmail.com


/* gcc-4.6.0 regression with complex.h on i386-pc-solaris2.10

% gcc -c foo.c
foo.c: In function ‘foo’:
foo.c:5:11: error: ‘_Imaginary_I’ undeclared (first use in this function)
foo.c:5:11: note: each undeclared identifier is reported only once for each
function it appears in
%
% gcc-4.5.1 -c foo.c
%
% gcc -v 
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-4.6.0/x86_64-SunOS-core2/libexec/gcc/i386-pc-solaris2.10/4.6.0/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: /usr/local/gcc-4.6.0/src/gcc-4.6.0/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.21/x86_64-SunOS-gccc-4.5.1/bin/as --with-gnu-ld
--with-ld=/usr/local/binutils-2.21/x86_64-SunOS-gccc-4.5.1/bin/ld
--with-gmp=/usr/local/mpir-2.3.0/x86_64-SunOS-core2-gcc-4.5.1-abi32
--with-mpfr=/usr/local/mpfr-3.0.0/x86_64-SunOS-core2-mpir-2.3.0-gcc-4.5.1-abi32
--with-mpc=/usr/local/mpc-0.9/x86_64-SunOS-core2-mpir-2.3.0-mpfr-3.0.0-gcc-4.5.1-abi32
--prefix=/usr/local/gcc-4.6.0/x86_64-SunOS-core2
Thread model: posix
gcc version 4.6.0 (GCC) 
%
*/

#include <complex.h>

double _Complex
foo () {
   return I;
}

Reply via email to