mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
When a member is checked, still add it to the environment. Addresses #903.
This commit is contained in:
@@ -20,6 +20,11 @@ union Cc
|
||||
{
|
||||
int a;
|
||||
int a; // #error: Duplicate member name 'a'
|
||||
}
|
||||
|
||||
union Cc2
|
||||
{
|
||||
int a;
|
||||
|
||||
struct b
|
||||
{
|
||||
@@ -27,7 +32,6 @@ union Cc
|
||||
int c; // #error: Duplicate member name 'c'
|
||||
}
|
||||
}
|
||||
|
||||
struct Dd
|
||||
{
|
||||
int b;
|
||||
@@ -37,7 +41,6 @@ struct Dd
|
||||
union
|
||||
{
|
||||
short a; // #error: Duplicate member name 'a'
|
||||
int b; // #error: Duplicate member name 'b'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user