From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26548 invoked by alias); 10 Nov 2008 03:18:02 -0000 Received: (qmail 18089 invoked by uid 48); 10 Nov 2008 03:16:41 -0000 Date: Mon, 10 Nov 2008 03:18:00 -0000 Message-ID: <20081110031641.18084.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: "jvdelisle 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: 2008-11/txt/msg00687.txt.bz2 ------- Comment #8 from jvdelisle at gcc dot gnu dot org 2008-11-10 03:16 ------- If you check, the minimum size of count is 8 as returned by the size= argument if you use it. Try this. size is intent OUT. PROGRAM sort1 INTEGER Count(1) !Current value of system clock integer Size CALL Random_Seed(size=size) print *, size ! CALL Random_Seed(Put=Count) END PROGRAM sort1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37159