http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606
--- Comment #3 from Troy 2012-09-25 09:13:34 UTC ---
I think more to the point, and a better mnemonic, is to say that "there are no
references in C++." What is called a reference in C++ is really just a
rename/alias for the variable. To rei
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606
--- Comment #2 from Andrew Pinski 2012-09-22
19:46:36 UTC ---
(In reply to comment #1)
> References cannot be assigned in C++, your code just triggers undefined
> behavior.
More to the point it is not undefined behavior but rather:
a =
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54606
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Component|libstdc++