From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13235 invoked by alias); 10 Nov 2010 17:24:07 -0000 Received: (qmail 13206 invoked by uid 22791); 10 Nov 2010 17:24:06 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Wed, 10 Nov 2010 17:24:01 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46156] [4.6 Regression] 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: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Status Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 10 Nov 2010 17:24: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-11/txt/msg01332.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46156 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #7 from H.J. Lu 2010-11-10 17:23:4= 2 UTC --- (In reply to comment #6) > template class vector { }; > struct A{}; > template > void complete_test(vector data1){ > A drop=3DA(); > } > int main(){ > vector vect1; > complete_test(vect1); > } >=20 > Fine with -std=3Dc++98 but not with -std=3Dc++0x: > bug.cpp: In function =E2=80=98void complete_test(vector) [with T1 =3D= double]=E2=80=99: > bug.cpp:9:22: instantiated from here > bug.cpp:5:11: internal compiler error: in tsubst_copy, at cp/pt.c:11677 This is caused by revision 166167: http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html