From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24944 invoked by alias); 15 May 2015 09:28:15 -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 24875 invoked by uid 48); 15 May 2015 09:28:12 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66130] "invalid use of non-static member function" message could be clearer Date: Fri, 15 May 2015 09:28: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.9.2 X-Bugzilla-Keywords: easyhack, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 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-05/txt/msg01158.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66130 --- Comment #7 from Paolo Carlini --- First blush I'm wondering if in this specific case we couldn't forward from dump_decl to dump_expr and just print =E2=80=98l->*ptr=E2=80=99. AFAICS, wo= uldn't be a regression and would allow us to adopt immediately Manuel' patch. >>From gcc-bugs-return-486319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 09:29:33 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26148 invoked by alias); 15 May 2015 09:29:33 -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 26111 invoked by uid 48); 15 May 2015 09:29:28 -0000 From: "luca.stoppa at bbh dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/66157] New: bits/random.tcc compiler error when using -fno-for-scope Date: Fri, 15 May 2015 09:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: luca.stoppa at bbh dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone 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-05/txt/msg01159.txt.bz2 Content-length: 1976 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66157 Bug ID: 66157 Summary: bits/random.tcc compiler error when using -fno-for-scope Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: luca.stoppa at bbh dot com Target Milestone: --- Created attachment 35545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35545&action=3Dedit That example won't compile Compiling a minimal example (empty main) that includes will res= ult into a compilation error. g++ -std=3Dc++14 -fno-for-scope m.cpp /opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc: In member function =C3=A2void std::seed_seq::generate(_RandomAccessIterator, _RandomAccessIterator)=C3=A2: /opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc:3444:19: er= ror: redeclaration of =C3=A2std::size_t __k=C3=A2 for (size_t __k =3D __m; __k < __m + __n; ++__k) ^ /opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc:3422:19: no= te: =C3=A2std::size_t __k=C3=A2 previously declared here for (size_t __k =3D 0; __k < __m; ++__k) I have checked the newest libstdc++ source code and the but is still there. I would like to know whether - "-fno-for-scope" is still a supported flag for c++11/14/1y, in that case I believe I hit an implementation error. In case you decide this is really an error the fix is really easy: __k should be changed to __k1 in the first lo= op, __k2 in the second loop, and so on. - if it is not supported, I think the gcc documentation should be updated. Testcases: g++ -std=3Dc++11 -fno-for-scope m.cpp won't compile g++ -std=3Dc++14 -fno-for-scope m.cpp won't compile g++ -std=3Dc++1y -fno-for-scope m.cpp won't compile when removing -fno-for-scope everything is fine. Thanks, Luca >>From gcc-bugs-return-486320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 09:39:21 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65697 invoked by alias); 15 May 2015 09:39:21 -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 65628 invoked by uid 55); 15 May 2015 09:39:17 -0000 From: "ienkovich at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/66134] [CHKP] ICE: Unable to coalesce ssa_names 18 and 17 which are marked as MUST COALESCE Date: Fri, 15 May 2015 09:39: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ienkovich at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ienkovich at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-05/txt/msg01160.txt.bz2 Content-length: 631 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66134 --- Comment #1 from Ilya Enkovich --- Author: ienkovich Date: Fri May 15 09:38:44 2015 New Revision: 223215 URL: https://gcc.gnu.org/viewcvs?rev=223215&root=gcc&view=rev Log: gcc/ PR middle-end/66134 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New. (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy. gcc/testsuite/ PR middle-end/66134 * gcc.target/i386/mpx/pr66134.c: New test. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-chkp.c