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

Re: C++ PATCH: Fix PR 13275


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

| On Wed, 17 Dec 2003, Richard Henderson wrote:
| 
| > The following patch appears to work for C.  I would recind my
| > earlier claim that it made the grammar too nasty.
| > 
| > Given this, does this seem the approach we want to take?
| 
| This is the approach I prefer (though I'm not aware of any actual bugs it
| fixes for C at present that would make it appropriate for this development
| stage).
| 
| > ! 	| OFFSETOF '(' typespec_nonattr ',' offsetof_member_designator ')'
| 
| Why typespec_nonattr here?  I don't see any problem with "struct foo { ... 
| } __attribute__((__packed__))" (for example) as the type in offsetof.

Can a type be defined in offsetof?  I would think no.

-- Gaby


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