From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6135 invoked by alias); 4 May 2010 22:09:15 -0000 Received: (qmail 6066 invoked by uid 48); 4 May 2010 22:08:52 -0000 Date: Tue, 04 May 2010 22:09:00 -0000 Message-ID: <20100504220852.6065.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43985] [4.5/4.6 Regression] ICE when assumed size cray-pointee passed as argument In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus 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: 2010-05/txt/msg00377.txt.bz2 ------- Comment #3 from burnus at gcc dot gnu dot org 2010-05-04 22:08 ------- Lightly tested patch: --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -1793,6 +1804,9 @@ gfc_sym_type (gfc_symbol * sym) restricted); byref = 0; } + + if (sym->attr.cray_pointee) + GFC_POINTER_TYPE_P (type) = 1; } else { @@ -1808,7 +1822,7 @@ gfc_sym_type (gfc_symbol * sym) { if (sym->attr.allocatable || sym->attr.pointer) type = gfc_build_pointer_type (sym, type); - if (sym->attr.pointer) + if (sym->attr.pointer || sym->attr.cray_pointee) GFC_POINTER_TYPE_P (type) = 1; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43985