From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 567 invoked by alias); 10 Nov 2008 13:51:29 -0000 Received: (qmail 23994 invoked by uid 48); 10 Nov 2008 13:50:02 -0000 Date: Mon, 10 Nov 2008 13:51:00 -0000 Message-ID: <20081110135002.23992.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/37159] RANDOM_SEED: PUT= check array size at compile time In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "michael dot a dot richmond at nasa dot gov" 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: 2008-11/txt/msg00714.txt.bz2 ------- Comment #11 from michael dot a dot richmond at nasa dot gov 2008-11-10 13:50 ------- (In reply to comment #10) > Admitted, it does not say SIZE = 8, because this value may be > compiler- and system-dependent (may also be 12 for gfortran on some > platforms), which is why the standard provides the SIZE argument in > the first place. > > I fail to see the problem - could you clarify? > A default integer on i386 is 4 bytes. The instruction "print sizeof(size)" prints 4. I assume it should also print 4 if I use: CALL Random_Seed(size=size) print *, size -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37159