From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7032 invoked by alias); 23 May 2002 06:42:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7013 invoked by uid 61); 23 May 2002 06:42:06 -0000 Date: Wed, 22 May 2002 23:42:00 -0000 Message-ID: <20020523064206.7012.qmail@sources.redhat.com> To: brian@talusmusic.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: rth@gcc.gnu.org Reply-To: rth@gcc.gnu.org, brian@talusmusic.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/6774: printf("%lld") prints bad values X-SW-Source: 2002-05/txt/msg00703.txt.bz2 List-Id: Synopsis: printf("%lld") prints bad values State-Changed-From-To: open->closed State-Changed-By: rth State-Changed-When: Wed May 22 23:42:06 2002 State-Changed-Why: Buggy test case. You have a typo in your printf format. Should be "1 << %lld = %lld". Using -Wall would have pointed this out: z.c: In function `main': z.c:11: warning: int format, different type arg (arg 2) http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6774