tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Array type not promoted within comma operator


From: Patrick Pelissier
Subject: [Tinycc-devel] Array type not promoted within comma operator
Date: Thu, 28 Dec 2023 15:44:49 +0100

Hi,

The following program doesn't compile with tinycc:

typedef int T[2];
int f(T t) {
return _Generic(t, __typeof__( ((void)0,(T){0})) : 1 );
}

whereas I was expecting it to compile (like for GCC/CLANG) due to
"promotion" of "array of int" type to "int pointer" type since it uses
the comma operator.

--
 Regards,
  Patrick



reply via email to

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