From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23773 invoked by alias); 12 Feb 2003 19:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 23729 invoked by uid 71); 12 Feb 2003 19:46:01 -0000 Resent-Date: 12 Feb 2003 19:46:01 -0000 Resent-Message-ID: <20030212194601.23728.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, fonseca@mip.sdu.dk Received: (qmail 19982 invoked by uid 48); 12 Feb 2003 19:37:09 -0000 Message-Id: <20030212193709.19981.qmail@sources.redhat.com> Date: Wed, 12 Feb 2003 19:46:00 -0000 From: fonseca@mip.sdu.dk Reply-To: fonseca@mip.sdu.dk To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9676: internal error in emit_move_insn for static cast of long double to unsigned long long X-SW-Source: 2003-02/txt/msg00534.txt.bz2 List-Id: >Number: 9676 >Category: c++ >Synopsis: internal error in emit_move_insn for static cast of long double to unsigned long long >Confidential: no >Severity: serious >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 12 19:46:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: fonseca@mip.sdu.dk >Release: Confirmed for GCC 3.1.1 and GCC 3.2 >Organization: >Environment: 686 target. >Description: The program below fails to compile with GCC 3.2 (native compiler under x86 GNU/Linux) and GCC 3.1.1 (mingw32 cross compiler under SPARC Solaris). Changes for GCC 3.2.2 does not seem to mention this problem. Native GCC 3.2 compiler under x86 GNU/Linux yields: g++ -O0 -march=i668 internal.cpp internal.cpp: In function `int main()': internal.cpp:6: Internal compiler error in emit_move_insn, at expr.c:2769 GCC 3.1.1 cross compiler for mingw32 target under SPARC Solaris yields: i386-pc-mingw32-gcc -O0 -march=i686 internal.cpp internal.cpp: In function `int main()': internal.cpp:6: Internal compiler error in emit_move_insn, at expr.c: 2769 The program only fails for GCC 3.1.1 if -march=i686 is set! void myFunction(short) { } int main() { long double temp = 1; myFunction(static_cast(temp)); // ERR return 0; } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: