From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D85AE384A02F; Wed, 3 Feb 2021 21:40:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D85AE384A02F From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/98963] New: gcc/jit/libgccjit++.h: 20 * function could be const Date: Wed, 03 Feb 2021 21:40:38 +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: dcb314 at hotmail 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2021 21:40:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98963 Bug ID: 98963 Summary: gcc/jit/libgccjit++.h: 20 * function could be const Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 50123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50123&action=3Dedit text file trunk.git/gcc/jit/libgccjit++.h:372:10: style:inconclusive: Technically the member function 'gccjit::function::dump _to_dot' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:376:11: style:inconclusive: Technically the member function 'gccjit::function::new_ block' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:377:11: style:inconclusive: Technically the member function 'gccjit::function::new_ block' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:379:12: style:inconclusive: Technically the member function 'gccjit::function::new_ local' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:383:12: style:inconclusive: Technically the member function 'gccjit::function::get_ address' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:408:10: style:inconclusive: Technically the member function 'gccjit::block::add_eva l' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:411:10: style:inconclusive: Technically the member function 'gccjit::block::add_ass ignment' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:415:10: style:inconclusive: Technically the member function 'gccjit::block::add_ass ignment_op' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:437:10: style:inconclusive: Technically the member function 'gccjit::block::add_com ment' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:440:10: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_conditional' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:445:10: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_jump' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:448:10: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_return' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:450:10: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_return' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:452:10: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_switch' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:457:18: style:inconclusive: Technically the member function 'gccjit::block::add_ext ended_asm' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:459:18: style:inconclusive: Technically the member function 'gccjit::block::end_wit h_extended_asm_goto' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:472:10: style:inconclusive: Technically the member function 'gccjit::rvalue::get_ty pe' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:477:12: style:inconclusive: Technically the member function 'gccjit::rvalue::derefe rence_field' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:480:12: style:inconclusive: Technically the member function 'gccjit::rvalue::derefe rence' can be const. [functionConst] trunk.git/gcc/jit/libgccjit++.h:502:12: style:inconclusive: Technically the member function 'gccjit::lvalue::set_in itializer' can be const. [functionConst] The attached diff seems to solve the problem. It builds ok.=