🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3890

Re: unreliable structures?

#3890
From: Alan Stokes
Date: Tue, 29 Aug 1995 14:15
17 lines
1013 bytes
In <wingDDr1ys.CG1@netcom.com> wing@netcom.com (Ben Wing) writes:
>I claim that this behavior is completely bogus and is a bug in GCC.
>Chris claims that the ANSI C standard does not actually forbid this
>bogosity from happening, or at least is not explicit about this.

You are outside the standard, because of your use of GCC extensions, 
so the standard can give you no protection. If a GCC extension doesn't
work the way you think it should (and I agree it looks pretty dumb)
then your only recourse is to GNU, not to the standard.

A standard C compiler isn't required to translate this code at all,
let alone produce any specific results.

-- 
Alan Stokes (alan@rcp.co.uk)
RCP Consultants Ltd
Didcot, UK
Technical Details
Message-ID: <2k1QwAPFBh107h@rcp.co.uk>
Path: arc1-ca.pugleaf.net!kate.ibmpcug.co.uk!rcp!alan
References: <wingDDr1ys.CG1@netcom.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kate.ibmpcug.co.uk!rcp!alan
From: alan@rcp.co.uk (Alan Stokes)
Newsgroups: comp.std.c
Subject: Re: unreliable structures?
Message-ID: <2k1QwAPFBh107h@rcp.co.uk>
Date: Tue, 29 Aug 95 14:15:18 GMT
References: <wingDDr1ys.CG1@netcom.com>
Organization: RCP Consultants Ltd.