From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31018 invoked by alias); 23 Oct 2010 19:25:27 -0000 Received: (qmail 31005 invoked by uid 22791); 23 Oct 2010 19:25:26 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_SG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 23 Oct 2010 19:25:22 +0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46152] ALLOCATE with type-spec fails for intrinsic types X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 23 Oct 2010 19:25:00 -0000 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: 2010-10/txt/msg01991.txt.bz2 Message-ID: <20101023192500.eo6rCEKm5MXPrNnocZLcxobmX9pfoslgTkhY2ZK9TTM@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152 --- Comment #3 from Steve Kargl 2010-10-23 19:25:19 UTC --- On Sat, Oct 23, 2010 at 06:50:21PM +0000, burnus at gcc dot gnu.org wrote: > > Compiling the following program: > > implicit none ! << crucial > integer, allocatable :: a It even more crucial that 'a' is a scalar. > allocate (integer :: a) > end > implicit none integer, allocatable :: a integer, allocatable :: b(:) integer, pointer :: ap integer, pointer :: bp(:) allocate (integer :: a) allocate (integer :: b(1)) allocate (integer :: ap) allocate (integer :: bp(1)) end laptop:kargl[206] gfc4x -o z a.f90 a.f90:4.17: allocate (integer :: a) 1 Error: Symbol 'integer' at (1) has no IMPLICIT type