🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2437

Re: const pointer confusion...

#2437
From: Jerry Coffin
Date: Sun, 31 Mar 1996 16:44
32 lines
2157 bytes
In article <4jcknm$a13@solutions.solon.com>, news@Thinkage.On.CA says...

> Actually, not all compilers follow the above.  Ours have several levels
> of diagnostics.
> 
> Fatal_errors:  The code is illegal, and so badly screwed up that
>        the compiler abandons further source analysis.
> Errors: The compiler detected something illegal and will not continue
>         other passes.  No usable object deck (loader input) will
>         be produced.  The compiler does try to analyse for other
>         errors.
> Warning: The code is illegal, but the compiler thinks it can generate
>         code to do what the programmer wanted.  (The duplicate
>         qualifier probably gets this.)  A usable object deck is
>         produced.

Hmm...an interesting way of going at things.  Given the wording of the 
standard, I'm not sure you can say the implementation isn't conforming because 
of this, but I rather doubt it's exactly what was intended.  Does it behave 
this way regardless of whether ISO conformance is requested?

> There are also some other diagnostics for legal but questionable
> constructs.  (E.g. variables declared but not used) These get
> "notes" and "unusual" type headers.

Ah, interesting.  The one I'm accustomed to simply classifies warnings by 
number - the "level" of warning is the first digit of the warning number.  
Level 1 warnings are nearly always errors while level 4 warnings are only 
slightly more likely to indicate real errors that those from lint. (Things 
like comparing signed to unsigned types, etc.)
    Later,
    Jerry.
Technical Details
Message-ID: <4jmcot$ls8@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4j41hs$nku@solutions.solon.com><4j639l$3ju@solutions.solon.com><4ja3rl$pa9@solutions.solon.com><4jcknm$a13@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: jcoffin@rmii.com (Jerry Coffin)
Newsgroups: comp.lang.c.moderated
Subject: Re: const pointer confusion...
Date: 31 Mar 1996 10:44:13 -0600
Organization: TAEUS
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4jmcot$ls8@solutions.solon.com>
References: <4j41hs$nku@solutions.solon.com><4j639l$3ju@solutions.solon.com><4ja3rl$pa9@solutions.solon.com><4jcknm$a13@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: MicroPlanet News32 v1.00 Beta Build 302