Closed ericonr closed 6 months ago
Found out it's already been reported https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 from the link in https://github.com/open-telemetry/opentelemetry-cpp/issues/2134
Would you like to apply my suggested fix (which I think can be simplified to the first "'"
string for both expressions), or should it be considered a compiler bug and the issue closed?
I'll happily accept the PR :) Thanks for the report, and for your findings!
Hi!
I noticed an error with my project which uses argparse when updating the compile flags, though I was using an older version of argparse. I tried reproducing it with the version from master and it still happened. I didn't dig into the implementation headers where the error cropped up, but I was able to "fix" it in argparse itself. It feels like a compiler bug, but I'd appreciate a second look before opening one (and it doesn't happen with Clang).
In order to reproduce it, you need:
main.cpp:
Makefile with the base set of flags I needed to reproduce it:
The patch to fix it, which I believe simply changes the operator used: