Compiling severity.h
with gcc-15 fails
#3239
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe your environment
Reported originally in https://bugs.gentoo.org/946146 for opentelemetry-cpp-1.16.1, but still reproducible with 1.18.0.
Build with gcc-15 fails with:
With some other gcc/clang versions it worked due to transitive includes, but it was very unpredictable (for example is available after inclusion if
string_view
with libc++, orostream
with libstdc++, but not for gcc-13). Here is a conformance view if you are interested: https://godbolt.org/z/hEs18z8PdSee linked pull-request with a fix.
The text was updated successfully, but these errors were encountered: