Commit 425c29a
committed
[Clang] Implement CWG3005 Function parameters should never be name-independent.
We already attempted to implement this (it was the intent of the paper),
in that parameters were never considered nmame independent.
However, we failed to check that any previously found parameter
declaration was also name independent.
Note that as worded the current resolution is insufficient
(I wrote to CWG with better wording), but there is some
consensus on the design outcome.
Fixes #1363731 parent cb068dc commit 425c29a
File tree
4 files changed
+33
-4
lines changed- clang
- docs
- lib/Sema
- test/CXX/drs
- www
4 files changed
+33
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7542 | 7542 | | |
7543 | 7543 | | |
7544 | 7544 | | |
7545 | | - | |
7546 | 7545 | | |
7547 | 7546 | | |
| 7547 | + | |
7548 | 7548 | | |
| 7549 | + | |
7549 | 7550 | | |
7550 | 7551 | | |
7551 | 7552 | | |
7552 | 7553 | | |
7553 | | - | |
7554 | | - | |
| 7554 | + | |
| 7555 | + | |
| 7556 | + | |
| 7557 | + | |
| 7558 | + | |
7555 | 7559 | | |
7556 | 7560 | | |
7557 | 7561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17890 | 17890 | | |
17891 | 17891 | | |
17892 | 17892 | | |
17893 | | - | |
| 17893 | + | |
| 17894 | + | |
| 17895 | + | |
| 17896 | + | |
| 17897 | + | |
17894 | 17898 | | |
17895 | 17899 | | |
17896 | 17900 | | |
| |||
0 commit comments