🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4096

Re: Erroneous diagnostic from VOS 'C' compiler?

#4096
From: Ronald C. McFarland
Date: Sat, 23 Sep 1995 15:19
25 lines
1579 bytes
Ian Cargill <ian@soliton.demon.co.uk> wrote:
>In article <DFBq4o.FED@polo.demon.co.uk> john@polo.demon.co.uk writes:
>
>>The VOS (Stratus) 'C' compiler generates an error on encountering
                                 ^^^^^^^^^^^^^^^^^^
>>the following code and refuses to compile it, complaining that the
                         ^^^^^^^^^^^^^^^^^^^^^
>>curly brackets are superfluous.  Is it broken?
>>
>>int an_array [1] = {1} ;
>
>
>Yes, it's broken. [...]

But, notice that it is broken because it "refuses to compile it", *not*
because it "generates an error".  The compiler is allowed to issue any
diagnostics that it wants to as long as it correctly translates the
program.  You may want to look again.  If the compiler is correctly
translating the line in question then the diagnostic can be ignored.
Of course, I don't think much of the quality of a compiler which issues
diagnostics like the one described above.

-- 
Ron McFarland
rcm@interramp.com
Technical Details
Message-ID: <4418hd$62p@usenet1.interramp.com>
Path: arc1-ca.pugleaf.net!interramp.com!usenet
References: <DFBq4o.FED@polo.demon.co.uk> <811844986snz@soliton.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!interramp.com!usenet
From: "Ronald C. McFarland" <rcm@interramp.com>
Newsgroups: comp.std.c
Subject: Re: Erroneous diagnostic from VOS 'C' compiler?
Date: 23 Sep 1995 15:19:08 GMT
Organization: Home PC
Message-ID: <4418hd$62p@usenet1.interramp.com>
References: <DFBq4o.FED@polo.demon.co.uk> <811844986snz@soliton.demon.co.uk>
NNTP-Posting-Host: ip166.cincinnatti.oh.interramp.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; Linux 1.3.22 i586)
X-URL: news:811844986snz@soliton.demon.co.uk