Skip to content

UB wording in §12.6.2/16 #557

Closed
Closed
@Arcoth

Description

@Arcoth

Member functions (including virtual member functions, 10.3) can be called for an object under construction. Similarly, an object under construction can be the operand of the typeid operator (5.2.8) or of a dynamic_cast (5.2.7). However, if these operations are performed in a ctor-initializer (or in a function called directly or indirectly from a ctor-initializer) before all the _mem-initializer_s for base classes have completed, the result of the operation is undefined.

That's assuredly meant to read "the behavior is undefined".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions