eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

[Bug]: build error on latest master using GCC 14.1.1 #3363

Closed UffeJakobsen closed 18 hours ago

UffeJakobsen commented 1 month ago

What happened?

build error on latest master using GCC 14.1.1

PS: Clang 17.0.6 builds fine

Archlinux GCC 14.1.1 20240507 output below:


In file included from /tmp/codelite-devel.git/dtl/dtl/dtl.hpp:44,
                 from /tmp/codelite-devel.git/Plugin/clDTL.cpp:28:
/tmp/codelite-devel.git/dtl/dtl/Diff.hpp: In member function ‘void dtl::Diff<elem, sequence, comparator>::enableTrivial() const’:
/tmp/codelite-devel.git/dtl/dtl/Diff.hpp:168:27: error: assignment of member ‘trivial’ in read-only object
  168 |             this->trivial = true;
      |             ~~~~~~~~~~~~~~^~~~~~

Version

Self compiled

Operating system

Linux

Steps to reproduce

No response

Relevant log output

No response

UffeJakobsen commented 1 month ago

https://github.com/cubicdaiya/dtl/issues/20

AJenbo commented 18 hours ago

Since GCC 14.1.1 appears to not actually be a real version of GCC but and Arch specific build (of what will more likely be part of GCC 14.2.0), and the issue is with an upstream package; I think it's better to close this issue for now. I have subscribed to https://github.com/cubicdaiya/dtl/pull/18 so that I will know to update the module once the issue is fixed upstream.