[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2009-04-27 09:18 --- I'm sorry, about the second case, don't you have to std::move(a), in order to accomplish what you want? At, least, this is what we consistently do in the experimental bits of the library. --

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread tom dot prince at ualberta dot net
--- Comment #7 from tom dot prince at ualberta dot net 2009-04-27 14:50 --- Created an attachment (id=17767) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17767action=view) Various failed attempts to create a std::vectorstd::unique_ptrint from an intializer list. These are my

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread tom dot prince at ualberta dot net
--- Comment #8 from tom dot prince at ualberta dot net 2009-04-27 14:52 --- Created an attachment (id=17768) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17768action=view) ICE from test2.cc The errors test2.cc generate vary if the various functions are commented out. --

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread tom dot prince at ualberta dot net
--- Comment #9 from tom dot prince at ualberta dot net 2009-04-27 15:01 --- This is an old patch that purports to fix 3rd of the original tests. http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00436.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread paolo dot carlini at oracle dot com
--- Comment #10 from paolo dot carlini at oracle dot com 2009-04-27 15:24 --- So, let me understand, as in a previous PR of yours, the problem boils down to intializer_lists only? CC-ing Jason in any case, because of the ICE. -- paolo dot carlini at oracle dot com changed:

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread tom dot prince at ualberta dot net
--- Comment #11 from tom dot prince at ualberta dot net 2009-04-27 15:43 --- Also, there is the issue of lvalues binding to rvalue references. See N2831 and possibly n2835. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2009-04-27 15:55 --- But n2831 is about rvalues binding to lvalues, not the other way around. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread paolo dot carlini at oracle dot com
--- Comment #13 from paolo dot carlini at oracle dot com 2009-04-27 15:58 --- I meant rvalue references binding to lvalues, of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread tom dot prince at ualberta dot net
--- Comment #14 from tom dot prince at ualberta dot net 2009-04-27 16:25 --- The updated version n2844. From the intro: (I guess I meant being bound to in the language of the standard) int i = 2; double d = i; // previously well-formed (d bound to a temporary double), now ill-formed

[Bug c++/39923] [C++0x] rvalue references

2009-04-27 Thread paolo dot carlini at oracle dot com
--- Comment #15 from paolo dot carlini at oracle dot com 2009-04-27 16:32 --- Nope. The issue is the usual one: obviously d is an rvalue reference binding the lvalue i. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-26 Thread tom dot prince at ualberta dot net
--- Comment #1 from tom dot prince at ualberta dot net 2009-04-27 03:12 --- Created an attachment (id=17761) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17761action=view) Test Case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-26 Thread tom dot prince at ualberta dot net
--- Comment #2 from tom dot prince at ualberta dot net 2009-04-27 03:13 --- Created an attachment (id=17762) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17762action=view) gcc output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-26 Thread tom dot prince at ualberta dot net
--- Comment #3 from tom dot prince at ualberta dot net 2009-04-27 03:15 --- Created an attachment (id=17763) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17763action=view) GCC version details -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-26 Thread tom dot prince at ualberta dot net
--- Comment #4 from tom dot prince at ualberta dot net 2009-04-27 03:16 --- Created an attachment (id=17764) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17764action=view) GCC version details -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923

[Bug c++/39923] [C++0x] rvalue references

2009-04-26 Thread tom dot prince at ualberta dot net
--- Comment #5 from tom dot prince at ualberta dot net 2009-04-27 04:01 --- Further consideration seems to indicate that the standard spuriously allows the second case to be illegal. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39923