http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
--- Comment #3 from Jonathan Wakely 2013-05-03
10:51:10 UTC ---
Keep reading 5.4, you didn't get to the bit about type conversions.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
--- Comment #2 from rockeet 2013-05-03 10:35:53 UTC
---
In this case, C++ shouldn't create a temporal object and bound the const ref to
it. The C++ standard (C++11) says:
5.2.1
Subscripting
[expr.sub]
1
A postfix expression followed by an expre
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
Jonathan Wakely changed:
What|Removed |Added
Severity|major |normal