From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21451 invoked by alias); 24 Jun 2014 16:49:17 -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 21433 invoked by uid 48); 24 Jun 2014 16:49:14 -0000 From: "thakis at chromium dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61596] New: -Wunused-local-typedefs warns incorrectly on a typedef that's referenced indirectly Date: Tue, 24 Jun 2014 16:49: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-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thakis at chromium dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01886.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61596 Bug ID: 61596 Summary: -Wunused-local-typedefs warns incorrectly on a typedef that's referenced indirectly Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: thakis at chromium dot org -Wunused-local-typedefs warns that the typedef in line "XXX" is unused, but it's used in line "YYY": auto f() { struct S { typedef int t; // XXX }; return S(); } void g() { auto x =3D f(); decltype(x)::t y; // YYY } /example.cpp: In function =E2=80=98auto f()=E2=80=99: 2 : warning: typedef =E2=80=98f()::S::t=E2=80=99 locally defined but not us= ed [-Wunused-local-typedefs] struct S { typedef int t; }; ^ (This is with 4.9.0. Testcase from Richard Smith.) >>From gcc-bugs-return-454805-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 24 17:03:36 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31502 invoked by alias); 24 Jun 2014 17:03:36 -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 31455 invoked by uid 55); 24 Jun 2014 17:03:33 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61268] [4.10 regression] ICE in vt_expand_var_loc_chain, at var-tracking.c:8262 Date: Tue, 24 Jun 2014 17:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01887.txt.bz2 Content-length: 682 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61268 --- Comment #7 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- >> --- Comment #5 from rsandifo at gcc dot gnu.org --- > [...] >> The patch passed bootstrap on x86_64-linux-gnu but could you test it for >> sparc too? > > Sure: sparc-sun-solaris2.11 bootstrap in progress. I'll be leaving for > a short vacation before that finishes, so don't expect a result before > tuesday next week. The bootstrap finished successfully and the ICE is gone. Thanks. Rainer