Compiling lexical_cast to an integer from a char with gcc and -O3 results in "array subscript -1 is outside array bounds" warnings
Open
- Dominant language
- HTML
- Stars
- 8.6k
- Forks
- 1.9k
- Avg merge
- 39m
- Merged PRs (30d)
- 2
Description
Starting with boost 1.85, when compiling the following code ([Godbolt](https://godbolt.org/z/q7c5jK799))
``` cpp
#include
int f(char n) {
return boost::lexical_cast(n);
}
```
`gcc -O3 -Wall -Wextra -pedantic` produces scary-looking warnings `array subscript -1 is outside array bounds`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.