From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26889 invoked by alias); 24 Aug 2015 18:59:56 -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 Received: (qmail 26822 invoked by uid 48); 24 Aug 2015 18:59:52 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67311] ICE calling subroutine with derived type as argument within OpenMP parallel region Date: Mon, 24 Aug 2015 18:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01680.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67311 --- Comment #4 from Jakub Jelinek --- Seems with ALLOCATABLE rather than POINTER it is rejected though: TYPE myType TYPE(myType), DIMENSION(:), ALLOCATABLE :: x END TYPE myType end pr67311-2.f90:2:46: TYPE(myType), DIMENSION(:), ALLOCATABLE :: x 1 Error: Derived type at (1) has not been previously defined and so cannot appear in a derived type definition