From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99679 invoked by alias); 30 Oct 2015 09:39:06 -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 99618 invoked by uid 48); 30 Oct 2015 09:39:01 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57117] [OOP] ICE for sourced allocation of a polymorphic entity using TRANSPOSE Date: Fri, 30 Oct 2015 09:39: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: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault 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-10/txt/msg02546.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57117 --- Comment #12 from Dominique d'Humieres --- > That's odd, it does fine with reshape on my machine ****sigh**** Are you sure to have attached the right patch? > Could you send me the error, please? Compiling the test in comment 5 gives pr57117_3.f90:12:0: allocate(x(3,3), source=reshape(z, (/ 3,3 /))) 1 internal compiler error: Segmentation fault: 11 The backtrace is #0 0x000000010010d6fc in vptr_field_get(tree_node*, int) () #1 0x0000000100114003 in gfc_copy_class_to_class(tree_node*, tree_node*, tree_node*, bool) () #2 0x000000010016615e in gfc_trans_allocate(gfc_code*) () #3 0x00000001000d7798 in trans_code(gfc_code*, tree_node*) () #4 0x000000010010a0b6 in gfc_generate_function_code(gfc_namespace*) () #5 0x000000010008cd4c in gfc_parse_file() () #6 0x00000001000d407b in gfc_be_parse_file() () #7 0x0000000100ae893a in compile_file() () #8 0x0000000100fbafcc in toplev::main(int, char**) () #9 0x0000000100fbc989 in main ()