Repository navigation
Commit c0ebd17
Fix #15084 Wrong varid for lambda in constructor initializer list
The lambda body in an initializer list was taken as the start of the
constructor body, so following members got the parameter varid, lambda
parameters leaked into the rest of the initializer list and the parameter
varid leaked into later functions (FP uninitMemberVar, selfInitialization,
functionStatic, constParameterPointer).
The lambda is now parsed like a lambda in executable code. findTypeEnd() also
finds the end of unlinked template brackets so that findLambdaEndScope() works
for trailing return types like std::vector<int> before createLinks2().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent abef304 commit c0ebd17
3 files changed
Lines changed: 98 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2683 | 2683 | | |
2684 | 2684 | | |
2685 | 2685 | | |
2686 | | - | |
| 2686 | + | |
2687 | 2687 | | |
| 2688 | + | |
| 2689 | + | |
2688 | 2690 | | |
2689 | 2691 | | |
2690 | 2692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4763 | 4763 | | |
4764 | 4764 | | |
4765 | 4765 | | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
4766 | 4784 | | |
4767 | 4785 | | |
4768 | 4786 | | |
| |||
4778 | 4796 | | |
4779 | 4797 | | |
4780 | 4798 | | |
| 4799 | + | |
4781 | 4800 | | |
4782 | 4801 | | |
4783 | 4802 | | |
| |||
4813 | 4832 | | |
4814 | 4833 | | |
4815 | 4834 | | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
4816 | 4842 | | |
4817 | 4843 | | |
4818 | 4844 | | |
| |||
4903 | 4929 | | |
4904 | 4930 | | |
4905 | 4931 | | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
4906 | 4940 | | |
4907 | 4941 | | |
4908 | 4942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
2789 | 2790 | | |
2790 | 2791 | | |
2791 | 2792 | | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
2792 | 2853 | | |
2793 | 2854 | | |
2794 | 2855 | | |
| |||
0 commit comments