From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10655 invoked by alias); 26 Feb 2013 16:06:35 -0000 Received: (qmail 10448 invoked by uid 48); 26 Feb 2013 16:05:18 -0000 From: "spraff at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56462] New: Simple use of auto in template function causes internal error in type_unification_real Date: Tue, 26 Feb 2013 16:06: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: spraff 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: 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: 2013-02/txt/msg02514.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56462 Bug #: 56462 Summary: Simple use of auto in template function causes internal error in type_unification_real Classification: Unclassified Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: spraff@gmail.com Here is a complete source file which causes the error ********************************************* template void foo (F & f) { auto f_copy =3D *f; } ********************************************* Compiling this on ubuntu 12.04 with g++ test.cpp -std=3Dc++0x yields the following error test.cpp: In function =E2=80=98void foo(F&)=E2=80=99: test.cpp:4:17: internal compiler error: in type_unification_real, at cp/pt.c:13573