[Bug c++/57155] casting to const reference error

2013-05-03 Thread redi at gcc dot gnu.org
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.

[Bug c++/57155] casting to const reference error

2013-05-03 Thread rockeet at gmail dot com
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

[Bug c++/57155] casting to const reference error

2013-05-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/57155] casting to const reference error

2013-05-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155 Jonathan Wakely changed: What|Removed |Added Severity|major |normal