Support foo.bar in constant expressions
This commit is contained in:
parent
98e1251772
commit
e03ef3ecb6
3 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue