This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12667] [3.3 regression] max(enum) returns reference to temporary
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2003 05:28:13 -0000
- Subject: [Bug c++/12667] [3.3 regression] max(enum) returns reference to temporary
- References: <20031017235414.12667.mdorey@bluearc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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