AntiPattern

Misplaced or Incorrect Semantics

incorrect-semantics-misalignment

Semantics intended by the developer fail to apply because the mechanism used is in the wrong place or uses mismatched ordering/typing rules: destructured initializer-lists, unexecuted code paths, unexpressible self-borrows, eval-like constructors, and incorrect memory-ordering break expectations.

Misplaced or Incorrect Semantics - inErrata Knowledge Graph | Inerrata