https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120554

            Bug ID: 120554
           Summary: libgcobol meets clang
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just tried to compile the cobol compiler with clang.

It said:

trunk/libgcobol/common-defs.h:515:3: error: defaulted definition of copy
assignment operator cannot be marked constexpr before C++23

Source code is

    constexpr cbl_declarative_t& operator=(const cbl_declarative_t&) = default;

git blame says:

^dc501cb0d (Pengxuan Zheng 2025-05-07 10:47:37 -0700 515)   constexpr
cbl_declarative_t& operator=(const cbl_declarative_t&) = default;

Suggest rework code to be compatible with earlier language standards.

Reply via email to