This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65786] Wrong code when using decltype to specify the return type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Apr 2015 09:31:08 +0000
- Subject: [Bug c++/65786] Wrong code when using decltype to specify the return type
- Auto-submitted: auto-generated
- References: <bug-65786-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65786
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Undefined behaviour, for the reason Andrew gave.
(People seem to like blaming new C++11 or C++14 features for their mistakes
when using std::max incorrectly, Bug 61769 is another example.)