Skip to content

RULE-5-13-4: False unsuffixed literal reported for T{} class member initializer #1164

Description

@MichaelRFairhurst

Affected rules

  • RULE-5-13-1

Description

Discovered on a QLX pull request. Likely related to the nested aggregate classes.

Example

class C1 {
  size_t x = static_cast<size_t>(0);
};

class C2 {
  C1 y{}; // falsely reported here
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    false positive/false negativeAn issue related to observed false positives or false negatives.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions