[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-25 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 --- Comment #2 from Nikolka tsoae at mail dot ru 2013-04-25 07:19:20 UTC --- The alias is added for convenience - we can quickly test handling of different types so. It seems that there is no problem with class types and function types, the error

[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2013-04-25 08:34:30 UTC --- In general, testcases must be minimal, otherwise, eg, you start wondering (as I did) whether the bug is in the code handling alias declarations.

[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-25 Thread tsoae at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 --- Comment #4 from Nikolka tsoae at mail dot ru 2013-04-25 13:51:21 UTC --- It looks like the root of the issue is that static_cast produces an expression with wrong value category sometimes. #include iostream #include

[Bug c++/57063] Valid static_cast from data member to rvalue reference fails to compile

2013-04-24 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57063 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED