From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12857 invoked by alias); 25 Oct 2010 04:33:56 -0000 Received: (qmail 12844 invoked by uid 22791); 25 Oct 2010 04:33:55 -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; Mon, 25 Oct 2010 04:33:49 +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: Mon, 25 Oct 2010 04:33: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/msg02055.txt.bz2 Message-ID: <20101025043300.V4mHoi_mlXsYqHpzFFk0N5mp4VEpdLY3fL54-Ar2oK8@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152 --- Comment #11 from Steve Kargl 2010-10-25 04:33:38 UTC --- On Mon, Oct 25, 2010 at 12:48:10AM +0000, sgk at troutmask dot apl.washington.edu wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152 > > --- Comment #10 from Steve Kargl 2010-10-25 00:47:49 UTC --- > Investigating a little more. I could not understand > why this issue was not caught earlier. Afterall, I > use 'implicit none' in all the code I write, and I > wrote a testcase for a type-spec in ALLOACATE. Looking > in testsuite/ChangeLog I find, > The attached patch fixes the problem. 2010-10-24 Steven G. Kargl PR fortran/46152 * testsuite/gfortran.dg/allocate_derived_1.f90: Update test. * fortran/match.c (match_derived_type_spec): Use gfc_find_symbol() instead of gfc_match_symbol(). (match_type_spec): Simplify the matching of a derived type. Move the matching of character length and kind to remove a jump.