Commit 9277434
committed
[clang] diagnose invalid member pointer class on instantiation
This moves the diagnostic for member pointers pointing into
non-class into BuildMemberPointer, so that it can be
used from RebuildMemberPointer, when instantiating templates.
Also adds a minor tweak to the diagnostic when the member pointer is anonymous,
which was previously untested.
Also reverts #132501, which
disabled a failing test due to the regression which is now fixed.
No changelog, since this fixes a regression which has not been released
yet.
Fixes #1324941 parent fe7776e commit 9277434
File tree
6 files changed
+44
-32
lines changed- clang
- include/clang
- Basic
- Sema
- lib/Sema
- test/SemaCXX
- libc/test/src/__support/CPP
6 files changed
+44
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6976 | 6976 | | |
6977 | 6977 | | |
6978 | 6978 | | |
6979 | | - | |
| 6979 | + | |
6980 | 6980 | | |
6981 | 6981 | | |
6982 | 6982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14885 | 14885 | | |
14886 | 14886 | | |
14887 | 14887 | | |
14888 | | - | |
| 14888 | + | |
14889 | 14889 | | |
14890 | 14890 | | |
14891 | 14891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
2688 | | - | |
2689 | | - | |
| 2688 | + | |
2690 | 2689 | | |
2691 | 2690 | | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
2692 | 2705 | | |
2693 | 2706 | | |
2694 | 2707 | | |
| |||
2730 | 2743 | | |
2731 | 2744 | | |
2732 | 2745 | | |
2733 | | - | |
| 2746 | + | |
2734 | 2747 | | |
2735 | 2748 | | |
2736 | 2749 | | |
| |||
5344 | 5357 | | |
5345 | 5358 | | |
5346 | 5359 | | |
5347 | | - | |
5348 | | - | |
5349 | | - | |
5350 | | - | |
5351 | | - | |
5352 | 5360 | | |
5353 | | - | |
5354 | | - | |
5355 | | - | |
5356 | | - | |
5357 | | - | |
5358 | | - | |
5359 | | - | |
5360 | | - | |
| 5361 | + | |
| 5362 | + | |
5361 | 5363 | | |
5362 | 5364 | | |
5363 | 5365 | | |
| |||
9255 | 9257 | | |
9256 | 9258 | | |
9257 | 9259 | | |
9258 | | - | |
9259 | | - | |
9260 | | - | |
9261 | | - | |
| 9260 | + | |
| 9261 | + | |
| 9262 | + | |
| 9263 | + | |
9262 | 9264 | | |
9263 | 9265 | | |
9264 | 9266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
868 | | - | |
| 867 | + | |
| 868 | + | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| |||
5631 | 5631 | | |
5632 | 5632 | | |
5633 | 5633 | | |
5634 | | - | |
5635 | | - | |
5636 | | - | |
| 5634 | + | |
| 5635 | + | |
| 5636 | + | |
| 5637 | + | |
5637 | 5638 | | |
5638 | 5639 | | |
5639 | 5640 | | |
| |||
17044 | 17045 | | |
17045 | 17046 | | |
17046 | 17047 | | |
17047 | | - | |
| 17048 | + | |
17048 | 17049 | | |
17049 | | - | |
| 17050 | + | |
17050 | 17051 | | |
17051 | 17052 | | |
17052 | 17053 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 337 | + | |
340 | 338 | | |
341 | 339 | | |
342 | 340 | | |
| |||
0 commit comments