This is the mail archive of the gcc@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: Should typedef'd unnamed structs be supported?


* Richard Henderson (rth at redhat dot com) [20030327 10:18]:

> On Thu, Mar 27, 2003 at 09:57:11AM +0100, Philipp Thomas wrote:
> > And here's the catch: in 3.3 and mainline this only gives a warning when
> > it's a declaration.
> 
> Yes.  Not sure about the history of this off the top of my head.
> While the comment says error, the code says warning.

And I'd say it would be far better if the code said error because a) code
that tries to access that member *will* get an error and b) the layout of
the structure changes, which is fatal when used in a driver like nfts to
map on-disk structures.
 
> Please smack the ntfs folk for me please.  This is gross.

This I'll do with pleasure :) Seems they've dealt with MS code far too long.
 
BTW, as it's now clear that this isn't a 3.2/3.3 regression, could you close
c/10225?

Philipp

-- 
Philipp Thomas <pthomas at suse dot de>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany


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