From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3662 invoked by alias); 13 Apr 2013 16:06:32 -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 Received: (qmail 3625 invoked by uid 48); 13 Apr 2013 16:06:29 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope Date: Sat, 13 Apr 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: ppluzhnikov at google 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 X-SW-Source: 2013-04/txt/msg01366.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56947 Bug #: 56947 Summary: [4.7.3 regression] Bogus 'XX' was not declared in this scope Classification: Unclassified Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: ppluzhnikov@google.com This is a recent gcc-4_7-branch regression. The case builds with trunk (r197936), fails with 4.7 branch (r197941): struct A { A (int); }; template < typename > void Fn () { const int kCapacity =3D 0; struct Q:A { Q ():A (kCapacity) { } }; Q q; } template void Fn < int >(); $ trunk/bin/g++ -c t.cc && echo ok ok $ 4.7/bin/g++ -c t.cc t.cc: In instantiation of =E2=80=98Fn()::Q::Q() [with =3D int]=E2=80=99: t.cc:14:7: required from =E2=80=98void Fn() [with =3D int]=E2=80=99 t.cc:16:26: required from here t.cc:12:26: error: =E2=80=98kCapacity=E2=80=99 was not declared in this sco= pe >>From gcc-bugs-return-420222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 13 16:43:14 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20861 invoked by alias); 13 Apr 2013 16:43:14 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20841 invoked by uid 48); 13 Apr 2013 16:43:11 -0000 From: "wbrana at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54078] Bytemark 46% bigger binary with -flto Date: Sat, 13 Apr 2013 16:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wbrana 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: 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 X-SW-Source: 2013-04/txt/msg01367.txt.bz2 Content-length: 399 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54078 --- Comment #5 from wbrana 2013-04-13 16:43:10 UTC --- branch 4.9 without lto 101462 bytes with -flto -fwhole-program 157243 bytes - linker bfd 155488 bytes - linker gold other CFLAGS = -O3 -g0 -march=corei7 -fomit-frame-pointer -funroll-loops -ffast-math -fno-PIE -fno-exceptions -fno-stack-protector