diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-24 11:20:58 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-30 16:57:17 +0200 |
commit | 93f63a94d4389f31d5b225ad220ebea5f7288fb7 (patch) | |
tree | de1e4342203a3567c8a719c8d689a3a097abc71a /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 49276efb07ef18098c0f72970acf523a1fc31eb8 (diff) | |
download | gcc-93f63a94d4389f31d5b225ad220ebea5f7288fb7.zip gcc-93f63a94d4389f31d5b225ad220ebea5f7288fb7.tar.gz gcc-93f63a94d4389f31d5b225ad220ebea5f7288fb7.tar.bz2 |
resolver: Add base for resolving const generic parameters
This commit adds a base for resolving the type and default expression of
const generic parameters.
For now, there is no disambiguation happening. So we are still
extremely limited.
For example, this structure gets its const generic parameter ignored and
unresolved because it looks like a type: Despite us knowing for sure
that the default expression here WILL be a constant expression.
```rust
const M: usize = 15;
struct Foo<const N: usize = M>;
```
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions