From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14703 invoked by alias); 27 Jul 2013 17:02:43 -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 14635 invoked by uid 48); 27 Jul 2013 17:02:40 -0000 From: "cngilbreth at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58003] New: internal compiler error: in convert_mpz_to_unsigned, at fortran/simplify.c:165 Date: Sat, 27 Jul 2013 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cngilbreth at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 2013-07/txt/msg01328.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58003 Bug ID: 58003 Summary: internal compiler error: in convert_mpz_to_unsigned, at fortran/simplify.c:165 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: cngilbreth at gmail dot com The following program triggers an internal compiler error when compiled with -fno-range-check: program test use iso_fortran_env implicit none integer, parameter :: wt = int32 write (*,'(a)') "Testing popcnt ..." if (bit_size(1_wt) >= 64) then write (*,*) popcnt(int(z'0F00F00080000001',wt)) == 10 end if if (bit_size(1_wt) >= 32) then write (*,*) popcnt(int(z'800F0001',wt)) == 6 end if end program test (Is this valid Fortran?) $ gfortran -fno-range-check test.f90 f951: internal compiler error: in convert_mpz_to_unsigned, at fortran/simplify.c:165 f951: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951) Abort trap: 6 $ gfortran --version GNU Fortran (GCC) 4.8.0 Copyright (C) 2013 Free Software Foundation, Inc.