> > Date: Wed, 21 Jan 2015 03:14:10 +1100 > > From: Jonathan Gray <[email protected]> > > > > So it seems at some point after gcc 4.4 --std=c89 and --std=c99 > > starting allowing anonymous unions/structs when this behaviour > > was otherwise only accepted with --std=gnu99, --std=c99 -fms-extensions > > or omitting a --std option entirely. > > Bleah. Feels wrong, but it seems a deliberate decision of the GCC > people not to warn about using newer ISO C features even if you ask > explicitly for for an older standard.
They have always behaved like that. I suspect both compiler writer groups have the same respect for the standards commitees as we do -- when the standard is weak, wrong, moving too slowly, or has acted to disembowel a new feature using methods which bring in other risks (the pattern of "you can now do N, but only if you enable the feature which enables A-M also"). By now it should be obvious that if parts of the software ecosystem can't stand still, then the other parts should not stand still either. There just are not enough people who wish to focus on standing still. This does not mean the fast moving people are right. But it does mean that as C changes, old code does in fact rot.
