From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21209 invoked by alias); 13 Jan 2012 22:22:39 -0000 Received: (qmail 21196 invoked by uid 22791); 13 Jan 2012 22:22:38 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GC 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; Fri, 13 Jan 2012 22:22:25 +0000 From: "hstong at ca dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51854] New: ICE in mangle.c with literal of complex floating type Date: Fri, 13 Jan 2012 22:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hstong at ca dot ibm.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: Message-ID: 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 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: 2012-01/txt/msg01573.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51854 Bug #: 51854 Summary: ICE in mangle.c with literal of complex floating type Classification: Unclassified Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: hstong@ca.ibm.com Host: powerpc64-unknown-linux-gnu Target: powerpc64-unknown-linux-gnu ICE with imaginary component in mangled expression. ## Small self-contained source (cmplxfMangle.cpp): template struct A; template char foo(U, V); template void bar(A *); int main() { bar(0); } ## Compiler invocation: g++-4.6.0 cmplxfMangle.cpp -c ## Compiler output: cmplxfMangle.cpp: In instantiation of =C3=A2void bar(A*) [with U =3D int]=C3=A2: cmplxfMangle.cpp:10:15: instantiated from here cmplxfMangle.cpp:7:6: internal compiler error: in write_template_arg_litera= l, at cp/mangle.c:2772 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ## g++ -v output: Using built-in specs. COLLECT_GCC=3Dg++-4.6.0 COLLECT_LTO_WRAPPER=3D/data/gcc/libexec/gcc/powerpc64-unknown-linux-gnu/4.6= .0/lto-wrapper Target: powerpc64-unknown-linux-gnu Configured with: ./configure --prefix=3D/data/gcc --program-suffix=3D-4.6.0 --disable-libssp --disable-libgcj --enable-version-specific-runtime-libs --with-cpu=3Ddefault32 --enable-secureplt --with-long-double-128 --enable-s= hared --enable-__cxa_atexit --enable-threads=3Dposix --enable-languages=3Dc,c++,f= ortran --with-gmp=3D/usr/local Thread model: posix gcc version 4.6.0 (GCC)