From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118889 invoked by alias); 27 Mar 2015 09:55:20 -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 118575 invoked by uid 48); 27 Mar 2015 09:55:16 -0000 From: "arvo at me dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65598] New: Misleading error message for out-of-class definition of explicit conversion operator Date: Fri, 27 Mar 2015 10:29: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: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: arvo at me 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created 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: 2015-03/txt/msg03115.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65598 Bug ID: 65598 Summary: Misleading error message for out-of-class definition of explicit conversion operator Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arvo at me dot com Created attachment 35160 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35160&action=3Dedit Preprocessed source System report: OS: GNU/Linux x86_64 Distribution: openSUSE 13.1 Package info: Informationen f=C3=BCr Paket gcc49-c++: ---------------------------------- Repository: @System Name: gcc49-c++ Version: 4.9.1+r213409-44.1 Arch: x86_64 Anbieter: obs://build.opensuse.org/devel:gcc Installiert: Ja Status: aktuell Installierte Gr=C3=B6=C3=9Fe: 17,3 MiB Zusammenfassung: The GNU C++ Compiler Beschreibung:=20 This package contains the GNU compiler for C++. Test program (C++11): struct ExplicitTest { explicit operator bool() const; }; explicit ExplicitTest::operator bool() const { return true; } The program is ill-formed because explicit is only allowed inside a class definition, as per =C2=A77.1.2/6 Function Specifiers [N3376]. However, the = error message is misleading and seems not to have been updated for C++11, where explicit conversion operators were introduced: $ g++-4.9 -c -std=3Dc++11 explicit_operator_bool.cxx explicit_operator_bool.cxx:6:40: error: only declarations of constructors c= an be =E2=80=98explicit=E2=80=99 explicit ExplicitTest::operator bool() const ^ (Also it would probably be better to place the caret underneath "explicit".) >>From gcc-bugs-return-481972-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 27 10:06:44 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26028 invoked by alias); 27 Mar 2015 10:06:44 -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 25327 invoked by uid 48); 27 Mar 2015 10:06:40 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/65597] ICE in build_outer_var_ref, at omp-low.c:1043 Date: Fri, 27 Mar 2015 10:30: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: 5.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr 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: bug_status cf_reconfirmed_on 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-03/txt/msg03116.txt.bz2 Content-length: 516 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65597 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-27 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres --- Confirmed since at least r210749.