[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] accepting a wrong scruct declaration
From: |
Sergey Korshunoff |
Subject: |
[Tinycc-devel] accepting a wrong scruct declaration |
Date: |
Sun, 29 Mar 2015 12:58:19 +0300 |
Hi! There is a test file (from the bug #31403 on savannah.nongnu.org)
truct A
{
struct B {
int f1;
int f2;
};
};
int main()
{
struct A a;
a.f1 = 16;
a.f2 = 32;
}
A tcc compiler must not accept this program because a struct B is only
a type declaration and not a member declaration. Any tips how to fix
this?
- [Tinycc-devel] accepting a wrong scruct declaration,
Sergey Korshunoff <=