From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23471 invoked by alias); 13 Apr 2015 09:21:46 -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 23415 invoked by uid 48); 13 Apr 2015 09:21:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65750] [4.9/5 Regression] misinterpret in a virtual member function with a C++11 style function signature Date: Mon, 13 Apr 2015 09:21: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: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org 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: keywords bug_status cf_reconfirmed_on cf_known_to_work short_desc everconfirmed 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-04/txt/msg01022.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65750 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2015-04-13 Known to work| |4.8.3 Summary|miss interpret in a virtual |[4.9/5 Regression] |member function with a |misinterpret in a virtual |C++11 style function |member function with a |signature |C++11 style function | |signature Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Rejects-valid, introduced by support for C++14 return type deduction. Reduced: template struct F { }; class a { virtual auto f( F< void () > ) -> void; virtual auto g( F< auto () -> void > ) -> void; }; auto main() -> int { } The error in comment 0 is only on the 4.9 branch, 5.0 gives a different err= or: s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 s.cc:6:38: error: template argument 1 is invalid virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 s.cc:6:38: error: template argument 1 is invalid virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 s.cc:6:38: error: template argument 1 is invalid virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 s.cc:6:38: error: template argument 1 is invalid virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:22: error: use of =E2=80=98auto=E2=80=99 in parameter declaration on= ly available with -std=3Dc++14 or -std=3Dgnu++14 s.cc:6:38: error: template argument 1 is invalid virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:19: error: =E2=80=98F=E2=80=99 is not a type virtual auto g( F< auto () -> void > ) -> void; ^ s.cc:6:20: error: expected =E2=80=98,=E2=80=99 or =E2=80=98...=E2=80=99 bef= ore =E2=80=98<=E2=80=99 token virtual auto g( F< auto () -> void > ) -> void; ^ >>From gcc-bugs-return-483471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Apr 13 09:44:04 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14304 invoked by alias); 13 Apr 2015 09:44:03 -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 14230 invoked by uid 48); 13 Apr 2015 09:44:00 -0000 From: "prathamesh3492 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49551] tentative declaration after definition and -fdata-sections cause ICE in C front-end. Date: Mon, 13 Apr 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: target X-Bugzilla-Version: 4.6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: prathamesh3492 at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: prathamesh3492 at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed 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-04/txt/msg01023.txt.bz2 Content-length: 755 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49551 prathamesh3492 at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed|2015-03-23 00:00:00 |2015-04-13 CC| |charles.baylis at linaro dot org, | |mkuvyrkov at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from prathamesh3492 at gcc dot gnu.org --- Hi, The ICE is not reproducible on the trunk any more. git bisect shows it became non-reproducible after r221297. Thank you, Prathamesh