https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Created attachment 35537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35537&action=edit non-working patch This patch fails for: struct Local { void f(); }; Local *l; void (Local::*ptr)(); decltype((l->*ptr)) i; // { dg-error "member function" } /home/manuel/test1/src/gcc/testsuite/g++.dg/cpp0x/decltype31.C:11:19: error: invalid use of non-static member function '#'offset_ref' not supported by dump_decl#<declaration error> We don't want to use %qE, but I'm not sure how to extract a declaration from an offset_ref. (It would be great to make such things an ICE with enable-checking, the patch passes bootstrap+regression tests!)