From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A3E783858D37; Fri, 22 Sep 2023 18:59:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3E783858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695409143; bh=Ahjui/qpUhk+uf2ibkCwB97BmH3SEj17VqjSDo1+yek=; h=From:To:Subject:Date:From; b=WchLWdNYaIdZ0Q5eyObPjo4KGp+j7bymiJ7Q/4O6uEeWZR63mNgTS8mGfHy2wtkjb IfAu/c9c5cOsHbSe0u3ewxUvaMtuoZY39bUONv4mOnsTfCb6Uul18PTKj6t3PWDKIO WiB3OZB4vrEYNC8uZSvXKZmvepfZTUJYfUCPuwTs= From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/111544] New: [14 regression] assignment of read-only location after r14-4111-g6e92a6a2a72d3b Date: Fri, 22 Sep 2023 18:59:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111544 Bug ID: 111544 Summary: [14 regression] assignment of read-only location after r14-4111-g6e92a6a2a72d3b Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Starting with r14-4111-g6e92a6a2a72d3b I am seeing a whole bunch of errors = when compiling some test code like this: /home/seurer/gcc/git/install/gcc-test//bin/g++ -c -o WFXMLScanner.o -DSPEC_= CPU -DNDEBUG -DAPP_NO_THREADS -DXALAN_INMEM_MSG_LOADER -I. -Ixercesc -Ixercesc= /dom -Ixercesc/dom/impl -Ixercesc/sax -Ixercesc/util/MsgLoaders/InMemory -Ixercesc/util/Transcoders/Iconv -Ixalanc/include -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -m64 -O3 -mcpu=3Dpower8 -fpeel-loops -funroll-loops -ffast-math -mpopcntd -mrecip=3Dall -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX WFXMLScanner.cpp In file included from ./xercesc/util/NameIdPool.hpp:338, from ./xercesc/internal/XMLScanner.hpp:311, from ./xercesc/internal/WFXMLScanner.hpp:93, from WFXMLScanner.cpp:65: ./xercesc/util/NameIdPool.c: In member function 'xercesc_2_5::NameIdPoolEnumerator& xercesc_2_5::NameIdPoolEnumerator::operator=3D(const xercesc_2_5::NameIdPoolEnumerator&)': ./xercesc/util/NameIdPool.c:416:20: error: assignment of read-only location '((xercesc_2_5::NameIdPoolEnumerator*)this)->xercesc_2_5::NameIdPool= Enumerator::fMemoryManager' 416 | fMemoryManager =3D toAssign.fMemoryManager; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ This is old, old code (one of the tests in spec 2006) and appears to run ju= st fine. Is there actually something wrong in the code or is the error messag= e in error? commit 6e92a6a2a72d3b7a5e1b29042d8a6a43fe1085aa (HEAD) Author: Patrick Palka Date: Mon Sep 18 14:47:52 2023 -0400 c++: non-dependent assignment checking [PR63198, PR18474]=