float complex c = 1.if;  // warning: imaginary constants are a GCC extension

This warning is generated when -pedantic is specified.  This creates problems 
with perfectly valid standard C99 code such as the following.

double complex d = I;

No particular placement of __extension__ seems to be able to make this warning 
go away.

-- 
           Summary: Impossible to mute warning: imaginary constants are a
                    GCC extension
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aaronavay62 at aaronwl dot com
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to