Date: Mon, 21 Aug 2000 20:20:02 -0700 (PDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: gnu/20767: gcc const produces invalid warning Message-ID: <200008220320.UAA43951@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: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: marka@nominum.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: gnu/20767: gcc const produces invalid warning Date: Mon, 21 Aug 2000 23:15:43 -0400 (EDT) <<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 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?200008220320.UAA43951>