From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14148 invoked by alias); 29 Aug 2008 03:32:34 -0000 Received: (qmail 13965 invoked by uid 48); 29 Aug 2008 03:31:13 -0000 Date: Fri, 29 Aug 2008 03:32:00 -0000 Message-ID: <20080829033113.13964.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35711] bad text in -Wcast-qual warning (forgets volatile) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg02284.txt.bz2 ------- Comment #4 from manu at gcc dot gnu dot org 2008-08-29 03:31 ------- (In reply to comment #3) > (In reply to comment #2) > > It is almost magic that we only warn for qualifiers. > > You can get the same message with an error message too: Sorry, I meant that it is almost magic that we only given an error/warning when casting away qualifiers and not for other invalid conversions since the only thing that we really know at the point of giving the warning/error is that a conversion was reject. > As static_cast cannot cast away qualifiers. Also note we (Sony) changed our > GCC to just say qualifiers instead of constness. Why such changes are not contributed back to FSF's GCC? I thought you would know better... :-( -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35711