Skip to content

[ub:basic.stc.alloc.dealloc.constraint] Irrelevant UB example #9276

Description

@BlowingWind314

Currently it says

void operator delete(void* ptr) noexcept {
    throw 0;                // undefined behavior, terminates by throwing an exception
}

[basic.stc.dynamic.deallocation]/3 merely says

... A deallocation function shall not have a potentially throwing exception specification. ...

The "throwing an exception in a noexcept function" example is irrelevant for this UB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ub-ifndrUB and IFNDR Annex

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions