-
Notifications
You must be signed in to change notification settings - Fork 226
Note Clang compiler bug seemingly unique to Glaze somewhere #2234
Copy link
Copy link
Open
Labels
compiler bugNot a Glaze bug, but a compiler bugNot a Glaze bug, but a compiler bug
Description
See the following:
llvm/llvm-project#134148
I have an unproven feeling that it's responsible for a weird bug that I could only reproduce on a specific version of Clang 21.
I have this program: https://gcc.godbolt.org/z/oeKbvWT99. On Compiler Explorer it will compile with incomplete type errors, and as far as I'm concerned that's fine.
However, if you compile it with the Clang from llvm-mingw's llvm-mingw-20251216-ucrt-x86_64.zip on Windows 10, for the last two lines it will say static assertion failed due to requirement 'glz::reflect<ExpUnary>::size == 2' because the expression evaluates to '0 == 2'. It won't complain about incomplete types.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
compiler bugNot a Glaze bug, but a compiler bugNot a Glaze bug, but a compiler bug