Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2000 22:20:03 -0700 (PDT)
From:      Mark.Andrews@nominum.com
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: gnu/20767: gcc const produces invalid warning 
Message-ID:  <200008220520.WAA60853@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/20767; it has been noted by GNATS.

From: Mark.Andrews@nominum.com
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: gnu/20767: gcc const produces invalid warning 
Date: Tue, 22 Aug 2000 15:20:14 +1000

 > <<On Tue, 22 Aug 2000 13:03:35 +1000 (EST), marka@nominum.com said:
 > 
 > > 	gcc incorrectly reports 'incompatible pointer type' when function
 > > 	is declared with 'const pointer to const pointer' arguement and is
 > > 	just passed pointer to pointer.
 > 
 > The code is in error, and the warning is in fact correct.  The type
 > `const foo * const *' is not compatible with `foo **'.  Only the
 > outermost qualifier participates in this form of promotion.
 > 
 > -GAWollman
 > 
 	If that is what ANSI C says I'll have to live with it but it is
 	illogical, not that logic applies to standards.
 	
 	Mark
 --
 Mark Andrews, Nominum Inc.
 1 Seymour St., Dundas Valley, NSW 2117, Australia
 PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews@nominum.com
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008220520.WAA60853>