Bug 20784

Summary: Impossible to mute warning: imaginary constants are a GCC extension
Product: gcc Reporter: Aaron W. LaFramboise <aaronavay62>
Component: cAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: minor CC: gcc-bugs, jsm28
Priority: P2 Keywords: diagnostic
Version: 4.1.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Aaron W. LaFramboise 2005-04-06 08:50:21 UTC
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.
Comment 1 Joseph S. Myers 2005-04-06 11:15:54 UTC

*** This bug has been marked as a duplicate of 7263 ***