|
From: | Christian Jullien |
Subject: | [Tinycc-devel] TinyCC -std=c2x support? |
Date: | Fri, 18 Jun 2021 10:23:11 +0200 |
Hi, C evolves and supports new features over the time. Do we want to support upcoming features like prototypes without parameters (as in C++)? See below: jullien@fedora:~ $ cat foo.c void foo(int) {} jullien@fedora:~ $ tcc -c foo.c foo.c:1: error: identifier expected It is otherwise supported by recent gcc/clang compilers jullien@fedora:~ $ gcc -v … gcc version 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC) jullien@fedora:~ $ clang –v … clang version 12.0.0 (Fedora 12.0.0-2.fc34) jullien@fedora:~ $ clang -std=c2x -c foo.c jullien@fedora:~ $ gcc -std=c2x -c foo.c gcc11 works even w.o. –std=c2x jullien@fedora:~ $ gcc -c foo.c |
[Prev in Thread] | Current Thread | [Next in Thread] |