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-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


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