From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3510 invoked by alias); 17 Jan 2007 01:33:00 -0000 Received: (qmail 3375 invoked by uid 48); 17 Jan 2007 01:32:28 -0000 Date: Wed, 17 Jan 2007 01:33:00 -0000 Message-ID: <20070117013228.3374.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/11856] unsigned warning in template In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tromey 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: 2007-01/txt/msg01322.txt.bz2 ------- Comment #17 from tromey at gcc dot gnu dot org 2007-01-17 01:32 ------- A flag to control the warning does not provide fine enough granularity of control. That is, sometimes the warning is appropriate, and disabling the warning would let through code that you would prefer not to let through. One idea would be to disable the warning if the expression involves types which came from a template instantiation (sorry, I don't know the C++ terminology for this). This at least would suitably solve the case I ran into while writing gcjx. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856