Skip to content

Conversation

@gunes-arm
Copy link
Contributor

While compiling with clang v20+, it was emitting -Wdeprecated-literal-operator, and in future versions, this warning can be emitted as an error.

Since we don't want to change the third party, we fixed this inside support/Half.h in this commit: afd78dd

However, there is another direct inclusion of half/half.hpp inside tests/validation/CPP/LUT.cpp, and we could potentially hit this issue there again. Currently, we don't because of possible transitive inclusions including support/Half.h before we explicitly include half/half.hpp. But, relying on this is not stable and we'd like to use support/Half.h for every usage/inclusion of half.hpp members.

You can easily reproduce an error by moving the include of half.hpp to the top, confirming our hypothesis that the error was suppressed only because it was suppressed through a transitive support/Half.h inclusion.

Partially Resolves: COMPMID-7924

Change-Id: I204b14eebabe27b06eebf3024938e41748500785

While compiling with clang v20+, it was emitting -Wdeprecated-literal-operator, and in future versions, this warning can be emitted as an error.

Since we don't want to change the third party, we fixed this inside support/Half.h in this commit: afd78dd

However, there is another direct inclusion of  half/half.hpp inside tests/validation/CPP/LUT.cpp, and we could potentially hit this issue there again. Currently, we don't because of possible transitive inclusions including support/Half.h before we explicitly include half/half.hpp. But, relying on this is not stable and we'd like to use support/Half.h for every usage/inclusion of half.hpp members.

You can easily reproduce an error by moving the include of half.hpp to the top, confirming our hypothesis that the error was suppressed only because it was suppressed through a transitive support/Half.h inclusion.

Partially Resolves: COMPMID-7924

Change-Id: I204b14eebabe27b06eebf3024938e41748500785
Signed-off-by: Gunes Bayir <gunes.bayir@arm.com>
@gunes-arm gunes-arm merged commit 4c5773f into main Dec 9, 2025
2 checks passed
@gunes-arm gunes-arm deleted the pr/compmid-7924 branch December 9, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants