From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25505 invoked by alias); 23 Jan 2006 01:23:28 -0000 Received: (qmail 25473 invoked by alias); 23 Jan 2006 01:23:26 -0000 Date: Mon, 23 Jan 2006 01:23:00 -0000 Message-ID: <20060123012326.25472.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: "gdr at cs dot tamu dot edu" 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 X-SW-Source: 2006-01/txt/msg02310.txt.bz2 List-Id: ------- Comment #11 from gdr at cs dot tamu dot edu 2006-01-23 01:23 ------- Subject: Re: unsigned warning in template "gdr at gcc dot gnu dot org" writes: | > I see, I oversimplified the problem a bit. Here is a better example: | > ------------------------------ | > #include | > template | > void f(Int x) { | > assert(0 <= x and x <= D); | > } | | This kind of template tends to be common place for certain catgories | of codes. It is annoying. To be clear, "it" is not the template, "it" is the warning in case there is a doubt :-) -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856