* Anton Altaparmakov (ai...@ca...) [20030327 16:50]:
> > OK. As I'll be sending a patch to remove the use of unnamed typedef'd
> > structures in layout.h (see my other mail) anyways,
>
> Why would you want to do that? I like them just as they are...
Mainly because it's a bug that gcc 3.2 accepts it without an additional
command line switch! Secondly because I agree with Richard Henderson that
this is gross.
gcc 3.3 (used in SuSE Linux 8.2) gave a warning so I asked on the gcc
mailinglist and also filed a bug report:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10225
This was closed by Richard Henderson with the following comment:
See Synopsis: [3.3/3.4 regression] Unnamed structs aren't handled correctly
It was a bug that 3.2 accepted this. For 3.3 and beyond this
is accepted with the -fms-extensions switch, but not otherwise.
I'll admit the documentation needs clarification, but it's
also true that you'll not find this "feature" documented
anywhere in the 3.2 tree.
In the discussion on the GCC ml rth also wrote this (quoting my mail):
Please smack the ntfs folk for me please. This is gross.
You can view the whole discussion starting at
http://gcc.gnu.org/ml/gcc/2003-03/msg01542.html
Philipp
--
Philipp Thomas <pt...@su...>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany
|