From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2954 invoked by alias); 4 Jul 2005 01:38:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2934 invoked by uid 48); 4 Jul 2005 01:38:45 -0000 Date: Mon, 04 Jul 2005 01:38:00 -0000 Message-ID: <20050704013845.2933.qmail@sourceware.org> From: "SebastianR at gmx dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041109232340.18411.manus@eiffel.com> References: <20041109232340.18411.manus@eiffel.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18411] Warning not legitimate X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg00296.txt.bz2 List-Id: ------- Additional Comments From SebastianR at gmx dot de 2005-07-04 01:38 ------- I think there might be an actual bug with this new warning: In the qsort man page, it says you can use strcmp as the last argument to qsort. So the types must be compatible, and it also works. However, this fails: ((int(*)(const void *, const void *)) strcmp) ("a", "b"); The type conversion is exactly the same, only this time it is called directly. I think this bug/feature is really annoying, especially (as already said) the fact that it compiles but crashes at run time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18411