This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54606] reference assignment failing/points at previous object
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Sep 2012 14:13:28 +0000
- Subject: [Bug c++/54606] reference assignment failing/points at previous object
- Auto-submitted: auto-generated
- References: <bug-54606-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|libstdc++ |c++
Resolution| |INVALID
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-17 14:13:28 UTC ---
References cannot be assigned in C++, your code just triggers undefined
behavior.