From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26908 invoked by alias); 6 Sep 2008 21:17:37 -0000 Received: (qmail 26752 invoked by uid 48); 6 Sep 2008 21:16:17 -0000 Date: Sat, 06 Sep 2008 21:17:00 -0000 Message-ID: <20080906211617.26751.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34199] segfault for TRANSFER integer to TYPE(C_PTR) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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: 2008-09/txt/msg00770.txt.bz2 ------- Comment #9 from dominiq at lps dot ens dot fr 2008-09-06 21:16 ------- Extracted from http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/c553e0034bab977c the following code program bug2_transfer use ISO_C_BINDING implicit none type(C_PTR) C_NULL_PTR1 C_NULL_PTR1 = transfer(23454_C_INTPTR_T, C_NULL_PTR1) write(*,'(a)') trim(merge('.TRUE. ','.FALSE.', & C_ASSOCIATED(C_NULL_PTR1))) end program bug2_transfer gives with trunk and 4.3.2 f951: internal compiler error: Bus error Please submit a full bug report, -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34199