[Bug c++/54191] New: [C++11] SFINAE does not handle conversion to inaccessible base
ai.azuma at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 7 11:17:00 GMT 2012
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: unassigned@gcc.gnu.org
ReportedBy: ai.azuma@gmail.com
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.
More information about the Gcc-bugs
mailing list