[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] parentheses and missing braces in initializer list
From: |
Jay Foad |
Subject: |
[Tinycc-devel] parentheses and missing braces in initializer list |
Date: |
Tue, 17 May 2011 15:38:30 +0100 |
I get:
$ cat t.c
struct {
struct { int i; float f; } u;
} x = { (3) };
$ tcc t.c
t.c:3: error: cast expected
I think this error is wrong. It should initialize x.u.i to be 3.
I'm using tcc built from the git repository a few minutes ago, on
Ubuntu 11.04 x86_64.
Thanks,
Jay.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] parentheses and missing braces in initializer list,
Jay Foad <=