From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28083 invoked by alias); 23 Jan 2015 09:44:27 -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 27269 invoked by uid 48); 23 Jan 2015 09:44:07 -0000 From: "potswa at mac dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59766] c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason Date: Fri, 23 Jan 2015 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: potswa at mac dot com X-Bugzilla-Status: NEW 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: attachments.created Message-ID: In-Reply-To: References: 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: 2015-01/txt/msg02497.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59766 --- Comment #6 from David Krauss --- Created attachment 34541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D34541&action=3Dedit Fix: disable the error for friend declarators. The fix is simple. Tested and submitted for approval. (I am a registered contributor.) I don't suppose this warrants a testcase file. If you want to exercise the compiler, here is a more interesting case: template< typename k > struct t { friend auto leak( t ); template< typename v > struct m { friend auto leak( t ) { return v{}; } }; }; int main() { t< int >::m< char > a; decltype( leak( t< int >{} ) ) b; static_assert ( sizeof b =3D=3D 1, "" ); t< int >::m< short > c; // error: redefinition of =E2=80=98auto leak(t<= int>)=E2=80=99 } >>From gcc-bugs-return-474504-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 23 09:49:11 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31184 invoked by alias); 23 Jan 2015 09:49:06 -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 31019 invoked by uid 55); 23 Jan 2015 09:48:53 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/64511] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu Date: Fri, 23 Jan 2015 09:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.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: 2015-01/txt/msg02498.txt.bz2 Content-length: 410 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64511 --- Comment #18 from Jakub Jelinek --- Author: jakub Date: Fri Jan 23 09:47:51 2015 New Revision: 220031 URL: https://gcc.gnu.org/viewcvs?rev=220031&root=gcc&view=rev Log: PR debug/64511 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next GTY markup. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.h