unit_test.hpp successfully compiles invalid code
Open
- Dominant language
- C++
- Stars
- 213
- Forks
- 149
- Avg merge
- 18h 17m
- Merged PRs (30d)
- 2
Description
I'm resubmitting this bug because the [last one](https://github.com/boostorg/test/issues/312) was closed and I'm afraid the nature of the issue was not clear.
Consider this invalid code:
```
BOOST_TEST(1 = somestring.size());
```
Assignment to a literal should be a compilation error, however the code above compiles successfully when using unit_test.hpp.
See: https://gcc.godbolt.org/z/MT8xrdesh
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.