Skip to content

[csetjmp.syn] CWG2361, LWG3652: Imprecise description of UB #1778

@lichray

Description

@lichray

A setjmp/longjmp call pair has undefined behavior if replacing the setjmp and longjmp by catch
and throw would invoke any non-trivial destructors for any automatic objects.

It's unclear what does the document mean by "replacing". Could be something like "if ... skips stack unwinding ..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    cwgIssue must be reviewed by CWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions