This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
When Obj-C++ support was added, CONST_DECL handling has been added to lvalue_p_1. As CONST_DECL are used in C++ land just for enumeration values, I assume it could be only because of objc_build_string_object which creates a CONST_DECL and creates ADDR_EXPR from it.
The following patch stops treating enumeration values as lvalues again, just handles the special ObjC CONST_DECL.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.4?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |