From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19413 invoked by alias); 20 Nov 2007 13:04:17 -0000 Received: (qmail 19162 invoked by uid 48); 20 Nov 2007 13:03:38 -0000 Date: Tue, 20 Nov 2007 13:04:00 -0000 Message-ID: <20071120130338.19154.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34143] alloc_comp_constructor.f90 fails with -fdefault-integer-8 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert 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: 2007-11/txt/msg01907.txt.bz2 ------- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-11-20 13:03 ------- The Intel and Sun compilers complain that this code is not legal, because you can't do "x = mytype(yy, bar)" if yy is not allocated. Otherwise, a reduced testcase on x86_64-linux is: type t integer, allocatable :: a(:) end type t type(t) :: x integer(kind=8), allocatable :: yy(:) x = t(yy) if (allocated(x%a)) print *, "bug" end -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-11-20 13:03:36 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34143