Re: a bug for __builtin_offsetof operator ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That makes sense.

So it seems the "__builtin_offset" is just a macro. After it is expanded, the () around "a.a1" will cause syntax error.


Thanks.

Mike


----- Original Message ----- From: "John Love-Jensen" <eljay@xxxxxxxxx> To: "Michael Gong" <mwgong@xxxxxxxxxxxxxx>; "MSX to GCC" <gcc-help@xxxxxxxxxxx>
Sent: Thursday, January 18, 2007 12:12 PM
Subject: Re: a bug for __builtin_offsetof operator ?


Hi Michael,

I think it is an issue for the same reason this is an issue:

struct B { int x,y,z; };

int main()
{
 struct B b;
 b.x = 3; // okay
 b.(y) = 4; // parse error
 return 0;
}

HTH,
--Eljay




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux