From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30274 invoked by alias); 24 Oct 2010 10:19:10 -0000 Received: (qmail 30264 invoked by uid 22791); 24 Oct 2010 10:19:10 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 10:19:06 +0000 From: "silver24k at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46156] ICE: in tsubst_copy, at cp/pt.c:11370 with -frounding-math X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: silver24k 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-Changed-Fields: CC In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 24 Oct 2010 10:19:00 -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 X-SW-Source: 2010-10/txt/msg02012.txt.bz2 Message-ID: <20101024101900.Z02IudWwLfXadi0xoLuAAkihGi_QnqeG99T9r58fl40@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46156 Yu Simin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |silver24k at gmail dot com --- Comment #1 from Yu Simin 2010-10-24 10:18:55 UTC --- this code (reduced from wxprintf.cpp in wxWidget trunk) #include template void foo (long double *p, va_list &argptr) { *p = va_arg (argptr, long double); } void bar (va_list ap) { long double argdata; foo (&argdata, ap); } can also produce this ICE mingw32-gcc -O2 -c ice.cpp # alias of i786-mingw32-gcc running on Linux 64bit OR win32 ice.cpp: In function 'void foo(long double*, char*&) [with _T = char, va_list = char*]': ice.cpp:12:25: instantiated from here ice.cpp:6:3: internal compiler error: in tsubst_copy, at cp/pt.c:11370 arm-gcc -O2 -c ice.cpp # alias of arm-none-eabi-gcc running on Linux 64bit OR win32 ice.cpp:9:6: note: the mangling of 'va_list' has changed in GCC 4.4 ice.cpp: In function 'void foo(long double*, va_list&) [with _T = char, va_list = __va_list]': ice.cpp:12:25: instantiated from here ice.cpp:6:3: internal compiler error: in tsubst_copy, at cp/pt.c:11370 both the ARM and MINGW32 versions are built from trunk r165885