http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54191
Bug #: 54191
Summary: [C++11] SFINAE does not handle conversion to
inaccessible base
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
The attached code includes some test cases for SFINAE on expressions
necessitating conversion from (a pointer to) an object of a derived class to (a
pointer to) an object of an inaccessible base class, or inverse of such
conversion. All the static_asserts in the attached code should be well-formed
according to the specification, but fail with GCC 4.8.0 20120805.
I think this PR is closely related to PR51213.