When a member is checked, still add it to the environment. Addresses #903.

This commit is contained in:
Christoffer Lerno
2023-07-31 12:35:41 +02:00
parent 20699c1262
commit 72f5bac346
3 changed files with 31 additions and 26 deletions

View File

@@ -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'
}
}
}