C++ PATCH for c++/52282
Jason Merrill
jason@redhat.com
Mon Nov 17 17:13:00 GMT 2014
I've started going through the constexpr blocker bug to try and clear up
remaining problems. For this bug, the issue wasn't really a problem
with the constexpr implementation, but with our pointer to member
function handling: a const PMF (e.g. void (A::* const)()) is a distinct
RECORD_TYPE from the cv-unqualified variant, so the __pfn member is
different in the two records, and trying to look up the const member in
the non-const initializer for the PMF variable fails. It seems to me
that a const PMF should just be a const variant of the PMF for the
unqualified pointer-to-member, and making that change seems to work fine.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 52282.patch
Type: text/x-patch
Size: 10291 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141117/02f9d27f/attachment.bin>
More information about the Gcc-patches
mailing list