C++ PATCH for c++/53995 (wrong name lookup with enum in member function)

Jason Merrill jason@redhat.com
Wed Jul 18 02:47:00 GMT 2012


Checking current_class_type isn't enough to determine whether we're at 
class scope; in this testcase it's set, but current_scope() is the 
member function, so we don't want to mess with the type.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.7.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 53995.patch
Type: text/x-patch
Size: 1159 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120718/aa021352/attachment.bin>


More information about the Gcc-patches mailing list