Skip to content

Generator results into a fatal error in 2.13.9 (newest not tested) #2809

@Viatorus

Description

@Viatorus

Describe the bug

The following code results in a fatal error.

TEST_CASE("Generator test") {
  SECTION("a") {
    SECTION("aa") {}
    SECTION("ab") {}
  }
  SECTION("b") {}

  GENERATE(true, false);
}

Expected behavior

No error at all.

Reproduction steps

Build and run the example above

Platform information:

  • OS: Linux
  • Compiler+version: GCC v11.3
  • Catch version: v2.13.9

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions