Evan Haas

Results 46 comments of Evan Haas

> How can i report a compiler error? see line 1711. I poked around Compilation.zig but nothing jumped out. For this particular error - the `for` loop that this `else`...

@tomc1998 if you rebase this against latest master I fixed a couple bugs with attributes. If you move the entire `for` loop that computes the size/alignment to right before the...

There's an edge case in the Zig caching mechanism due to `__has_include` - it's probably not a realistic real-world usage of it, but I thought I'd point it out since...

I think we could implement this by just truncating the argument at the first newline before writing it to `macro_buf` in `main.zig:parseArgs`

In case we do end up using this I started adding features on a branch https://github.com/ehaas/arocc/blob/interned-types/src/NewType.zig I added variable-length encoding for `u64` and an encoding for slices (e.g. function parameters)....

I think it might be needed for `typeof` types e.g. ```c typeof(const int) *foo = 0; ```

There's a rust crate that does this, which is MIT licensed, which could possibly be used as inspiration: https://github.com/mahkoh/repr-c/tree/master/repc/facade Should this be its own project? Seems big enough to be,...

> That does seem to imply something but I couldn't find an actual test case that demonstrated that behavior. > Here's an example: ```C #pragma pack(1) typedef struct { char...

Are you thinking something like sorting the aligned attributes by requested alignment? That way `ty.getAttribute(.aligned)` would get the largest one and we wouldn't need the `requestedAlignment` function.

Are you using the latest master branch? And what command-line flags & platform for arocc are you using? Neither of those examples crashes for me, tested on MacOS and Linux.