Skip to content

Cannot compile, ISO C++17 erreor #2

@trolando

Description

@trolando
g++ -MMD -MF .mymemory.o.d -fPIC -c mymemory.cc -Wall -g -O3 -Iinclude -I.
mymemory.cc:231:34: error: ISO C++17 does not allow dynamic exception specifications
  231 | void * operator new(size_t size) throw(std::bad_alloc)
      |                                  ^~~~~
mymemory.cc:243:36: error: ISO C++17 does not allow dynamic exception specifications
  243 | void * operator new[](size_t size) throw(std::bad_alloc)
      |                                    ^~~~~

With gcc version 14.3.1 20250523 on the latest Fedora.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions