-
Hello,
chibicc does not evaluate the ## operator in the replacement list of an object-like macros.
The C standard says, to quote ISO/IEC 9899:1999:
> For both object-like and function-like macr…
-
HI dear author,
It's truly a honor to write a letter to you, I'm building your project nowadays and found the error when building as following, I wonder if there is a chance that you know the …
-
https://github.com/muon-build/muon
ghost updated
2 weeks ago
-
# Bug report
### Bug description:
For a non-`gcc`/`clang` compiler, `_Py_TYPEOF` is not defined.
https://github.com/python/cpython/blob/c08a302249edba844a26e1a0231671afd92b973d/Include/pyport.h#L548…
-
main.c
```
#include
int
main(void)
{
puts("Hello world");
return 0;
}
```
```
$ chibicc main.c
/usr/include/bits/alltypes.h:6: typedef __builtin_va_list va_list;
…
-
Mixing statement expressions and `goto` gives an error, usually this works in GCC/Clang. Small test case:
```c
int main() {
int r = ({
int x;
goto label;
label:
x;
});
retur…
-
I was just testing out chibicc on a mac with
```
clang -g \
-fsanitize=address \
-fsanitize=undefined \
-Wno-switch -Wno-format *.c && \
./a.out -I *.c -S
```
and the address sanitiz…
-
> 0XE+2 should evaluate to 16, however, both gcc and clang give an error: invalid suffix "+2" on integer constant. Both bugs are known: [gcc](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63337), [clan…
-
The declaration of `main`[:74](https://github.com/drh/lcc/blob/9bd428949f53b34980d194b1b4a2be921a85b5b4/etc/lcc.c#L74) is missing a type entirely. I set this to `int` and proceeded.
Trying to run `…
-
#include "test.h"
typedef int MyInt, MyInt2[4];
typedef int;
typedef enum MyEnum MyEnum;
enum MyEnum
{
ENUM_TEST
};
int main() {
ASSERT(1, ({ typedef int t; t x=1; x; }));
ASSER…