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: 15 Nov 2003 11:31:08 -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-15 11:31 -------
In 3.0.4 and before the code was right and included the compare so that is a regression
but since I do not know if the code invokes undefined behavior, I am not confirming this
one.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pessimizes-code, wrong-code
Summary|max(enum) returns reference |[3.3 regression] max(enum)
|to temporary |returns reference to
| |temporary
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12667