Rui Ueyama
Rui Ueyama
We need to teach the compiler about system-default include paths such as `/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/include`, which obviously depends on what distribution you are using. Currently, chibicc only supports Ubuntu 20.04 and other...
This is a function that defines the default include paths. https://github.com/rui314/chibicc/blob/main/main.c#L53 You may try adding a few paths there to see your problem is solved.
I guess this is more like a bug in the spec (if it should be considered as a bug in the first place) and not a bug of my particular...
Thanks! This is a bad bug.
Yeah, sorry, no progress. I had no time to work on the book.
I don't think this is a bug but a design choice. Did you have a better idea?
It looks like implementing the feature to a small compiler shouldn't be too hard, so I'd implement it to chibicc if it is accepted as a part of C2X. That...
How can you use constexpr to register test functions at compile time? I'm just curious.
Can a constexpr function have a side effect such as adding a new element to a global array?
So, is the following code valid? ``` constexpr int fn(int *arr) { return (arr[0]++, 5); } constexpr int g1[3]; // initialized with {0, 0, 0}? int g2 = fn(g1); ```...