C++ PATCH for c++/53788 (accepts-invalid with call to method in decltype)
Jason Merrill
jason@redhat.com
Tue Jul 3 03:29:00 GMT 2012
The diagnostic for calling a non-static member function without an
associated object depends on the form of the dummy object built by
build_dummy_object. If we wrap it in a NON_DEPENDENT_EXPR, then
is_dummy_object doesn't recognize it any more. So don't wrap it.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 53788.patch
Type: text/x-patch
Size: 1870 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120703/66ebf4fe/attachment.bin>
More information about the Gcc-patches
mailing list