This is the mail archive of the gcc-help@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]

Help with gcc-3.1


The following code is part of our project which compiles without warnings
using gcc 2.95.2, 2.95.3 and 3.0.4
If compiled with gcc 3.1, it produces errors. Can somebody tell me if this
is a bug in gcc 3.1 or our code is not correct?
Thank you, Carl Eugen Hoyos

-----------------------------------------------------------------
typedef struct { double x[3];    } Crd3;
typedef struct { Crd3 c; }      Rgb;

#define CRD3(_d0,_d1,_d2)       ((Crd3){{ (_d0), (_d1), (_d2) }})
#define RGB(_r,_g,_b)           ((Rgb){CRD3( (_r),(_g),(_b) )})

const Rgb RGB_WHITE =   RGB( 1.0, 1.0, 1.0 );

int main()
{
return 0;
}
-----------------------------------------------------------------


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