This is the mail archive of the gcc-bugs@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]

[Bug c++/12667] [3.3 regression] max(enum) returns reference to temporary


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 05:28 -------
Is a type of "const enum &" an lvalue, if it is then this is a bug in 3.3, otherwise there is a bug in 
3.4 because of 5.16/4 If the second and third operands are lvalues and have the same type, the 
result is of that type is an lvalue.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12667


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]