This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pending/19514] bogus warning about complex "integer" types from typedef


------- Additional Comments From joseph at codesourcery dot com  2005-01-18 22:20 -------
Subject: Re:  New: bogus warning about complex "integer"
 types from typedef

On Tue, 18 Jan 2005, gcc-bugzilla at gcc dot gnu dot org wrote:

> When compiling the following two lines:
> 
> typedef double R;
> typedef R _Complex C;

This is not valid code; you can't use _Complex together with a typedef, 
only together with "float", "double" or "long double" in one of the forms 
listed in C99.

The misleading diagnostic is a bug, which has been fixed in mainline: you 
now get the error

t.c:2: error: two or more data types in declaration specifiers



-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]