catchorg / catchorg/Catch2

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

Open
#2,809 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.