Support foo.bar in constant expressions

This commit is contained in:
Olly Betts 2022-01-26 12:43:45 +13:00
commit e03ef3ecb6
3 changed files with 11 additions and 2 deletions

View file

@ -14,4 +14,11 @@ isPointer = false
};
};
// Test handling of ID PERIOD ID in constant expressions (supported since 4.1.0).
struct A {
int i;
};
constexpr A a{42};
const int N = a.i;
%}