public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pending/19514] New: bogus warning about complex "integer" types from typedef
@ 2005-01-18 22:02 gcc-bugzilla at gcc dot gnu dot org
  2005-01-18 22:20 ` [Bug pending/19514] " joseph at codesourcery dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-01-18 22:02 UTC (permalink / raw)
  To: gcc-bugs

NOTE: Defaulting component because reported component no longer exists

When compiling the following two lines:

typedef double R;
typedef R _Complex C;

with the flags -std=c99 -pedantic, gcc gives the bogus warning:

foo.c:2: warning: ISO C does not support complex integer types

(Code based on the above definitions seems to work, however.)

Environment:
System: Linux ab-initio 2.4.25 #1 SMP Fri Jul 9 17:11:47 EDT 2004 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/usr/local/gcc-3.4 --enable-languages=c,c++,f77

How-To-Repeat:
Create a file foo.c with the above two lines, and compile with
	gcc -std=c99 -pedantic -c foo.c
------- Additional Comments From stevenj at ab-initio dot mit dot edu  2005-01-18 22:02 -------
Fix:
Simply ignoring the warning seems to work okay.

-- 
           Summary: bogus warning about complex "integer" types from typedef
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pending
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stevenj at ab-initio dot mit dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-18 23:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-18 22:02 [Bug pending/19514] New: bogus warning about complex "integer" types from typedef gcc-bugzilla at gcc dot gnu dot org
2005-01-18 22:20 ` [Bug pending/19514] " joseph at codesourcery dot com
2005-01-18 22:53 ` pinskia at gcc dot gnu dot org
2005-01-18 22:57 ` stevenj at fftw dot org
2005-01-18 23:15 ` stevenj at fftw dot org
2005-01-18 23:53 ` joseph at codesourcery dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).