Commit 6de944b
committed
Add diagnostics for type alias to a wildcard, closes #357
In the current implementation of cppfront (f83ca9) the following code:
```cpp
alias5: type == _;
alias6: type == auto;
```
Generates succesfuly:
```cpp
using alias5 = auto;
using alias6 = auto;
```
Which is invalid cpp1 code.
After this change the alias to wildcard will generate the following error:
```
error: a 'type ==' alias declaration must be followed by a type name (not a wildcard _ nor auto)
```
All regression tests pass. Closes #3571 parent d7adb8f commit 6de944b
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5617 | 5617 | | |
5618 | 5618 | | |
5619 | 5619 | | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
5620 | 5630 | | |
5621 | 5631 | | |
5622 | 5632 | | |
| |||
0 commit comments