Commit 7608c5f
authored
[clang][NFC] Mark CWG2629 as implemented and add a test (llvm#195490)
This is ill-formed:
```cpp
switch (0.0) {}
```
Before [CWG2629](https://wg21.link/cwg2629) though, this was allowed:
```cpp
switch (double d = 0.0) {} // Value of 'd' is implicitly converted to an integer
```
Clang however has always rejected both: https://godbolt.org/z/GYc4hhrnz1 parent e8a85b2 commit 7608c5f
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18208 | 18208 | | |
18209 | 18209 | | |
18210 | 18210 | | |
18211 | | - | |
| 18211 | + | |
18212 | 18212 | | |
18213 | 18213 | | |
18214 | 18214 | | |
| |||
0 commit comments