tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Empy preprocessor lexeme bug


From: Temirkhan Myrzamadi
Subject: [Tinycc-devel] Empy preprocessor lexeme bug
Date: Sun, 2 May 2021 19:48:54 +0600

Take a look at the following code:

```
#define CALL(f, ...) f(__VA_ARGS__)
#define CONST()      123

// error: macro 'CONST' used with too many args
CALL(CONST, )
```

But `CONST()` work as expected. I think it's a bug because both
`CONST()` and `f(__VA_ARGS__)` are identical calls, where
`__VA_ARGS__` stands for the empty preprocessor lexeme, as in
`CONST()`.

```
$ tcc -v
tcc version 0.9.27 (x86_64 Linux)
```

(I am not sure where to post bugs, please let me know if this isn't the place.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]