tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] spurious "cast expected" error when initialising a struct


From: Jay Foad
Subject: [Tinycc-devel] spurious "cast expected" error when initialising a struct
Date: Mon, 31 Mar 2014 13:42:36 +0100

In this example I get a spurious error, but only when I elide some
braces *and* put parentheses around the literal:

$ cat a.c
struct {
  struct {
    int i;
  } a;
} x = {
  (3)
};
$ ./tcc a.c
a.c:6: error: cast expected

Jay.



reply via email to

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