Rui Ueyama
Rui Ueyama
One more question: can you take an address of a constexpr object at compile time and do pointer arithmetic on that pointer? I guess the answer is yes, because otherwise...
I carefully read the proposed changes to the wording of the standard, and it isn't clear to me what is allowed, so I asked the questions. I'm sorry if the...
@tavianator Yes, it looks like a bug in codegen. Your code should work, but there's another way. You can shift to the left to clear higher bits and then shift...
@tavianator Ah, interesting! So gcc and clang use an extra register instead of shifting to the left and to the right. I'm not very familiar with instruction selection, but I...
@tavianator It looks like it is an optimization for a field that is at the leftmost bit position in a word. For other cases, `and` is still being used: https://godbolt.org/z/hThfor7o3
Nice! Thank you for letting me know.
Portability is not my goal at this moment, as I want to focus on the compiler itself rather than working on system-dependent stuff. I usually recommend readers use Docker to...
Thanks. It was a typo. I'll merge this patch when I have time.
I implemented this behavior for compatibility with GCC. In hindsight, I probably should have just rejected such extraneous tokens. Maybe I'll rewrite code as such.
Thank you for pointing that out. I think we should use `strncmp` as you mentioned. I'll keep this bug open until I make a fix to my local repo. Thanks!