From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4740 invoked by alias); 7 Apr 2003 12:31:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 4725 invoked from network); 7 Apr 2003 12:31:39 -0000 Received: from unknown (HELO pdns.sankhya.co.in) (203.199.194.30) by sources.redhat.com with SMTP; 7 Apr 2003 12:31:39 -0000 Received: from sankhya-internal.sankhya.com (sankhya-external [192.168.1.2]) by pdns.sankhya.co.in (8.11.6/8.11.6) with ESMTP id h37Cfh921124; Mon, 7 Apr 2003 18:11:43 +0530 Received: from sankhya.com (mailhost.sankhya.com [192.9.200.1]) by sankhya-internal.sankhya.com (8.11.6/8.11.6) with ESMTP id h372F0F08859; Mon, 7 Apr 2003 06:15:00 +0400 Received: from sun103.sankhya.com (sun103 [192.9.200.9]) by sankhya.com (8.6.12/8.6.9) with ESMTP id SAA09832; Mon, 7 Apr 2003 18:05:07 +0530 Received: from localhost by sun103.sankhya.com (SMI-8.6/SMI-SVR4) id SAA00622; Mon, 7 Apr 2003 18:00:05 +0530 Date: Mon, 07 Apr 2003 12:31:00 -0000 From: "A.R. Ashok Kumar" X-Sender: ashokar@sun103 To: Andreas Schwab cc: Eric Botcazou , Lev Assinovsky , gcc-help@gcc.gnu.org Subject: Re: gcc 3.3: long long bug? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-04/txt/msg00055.txt.bz2 Hi, > |> > const long long n = 34359738368; // 2^35 > |> > > |> > Got: > |> > max.cpp:1: error: integer constant is too large for "long" type > |> > |> Append "LL" to the constant. > > That should not be needed. Size for type "long long" may be only 32-bit in your system. Since it is 35-bit number, it gives error. You can check the size of "long long" type in your system, by printing sizeof(long long). Best Wishes, AshokA