From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7649 invoked by alias); 23 Jan 2011 10:10:54 -0000 Received: (qmail 7638 invoked by uid 22791); 23 Jan 2011 10:10:53 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Sun, 23 Jan 2011 10:10:39 +0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/41951] [OOP] ICE in gfc_match_varspec, at fortran/primary.c:1815 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: 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: Sun, 23 Jan 2011 11:17: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: 2011-01/txt/msg02363.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41951 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig 2011-01-23 10:10:33 UTC --- Another test case, from http://groups.google.com/group/comp.lang.fortran/msg/e6a865eda59e86db?hl=de module mytypes implicit none private public :: mytype, get_i integer, save :: i_priv = 13 type :: mytype integer :: dummy contains procedure, nopass :: i => get_i end type mytype contains pure function get_i () result (i) integer :: i i = i_priv end function get_i end module mytypes program test use mytypes implicit none type(mytype) :: a type(mytype), parameter :: a_const = mytype (0) ! integer, dimension (get_i()) :: x ! #1 ! integer, dimension (a%i()) :: x ! #2 integer, dimension (a_const%i()) :: x ! #3 print *, size (x) end program test