Re: [PATCH] c++: Missing SFINAE with inaccessible static data member [PR90880]

2020-05-01 Thread Jason Merrill via Gcc-patches
On 5/1/20 11:23 AM, Patrick Palka wrote: This is a missing SFINAE issue when verifying the accessibility of a static data member. The reason is that check_accessibility_of_qualified_id unconditionally passes tf_warning_or_error to perform_or_defer_access_check, even when called from tsubst_quali

[PATCH] c++: Missing SFINAE with inaccessible static data member [PR90880]

2020-05-01 Thread Patrick Palka via Gcc-patches
This is a missing SFINAE issue when verifying the accessibility of a static data member. The reason is that check_accessibility_of_qualified_id unconditionally passes tf_warning_or_error to perform_or_defer_access_check, even when called from tsubst_qualified_id(..., complain=tf_none). This patch