[Bug c++/79832] [C++14/17] result of subscripting non lvalue array should be xvalue

2021-07-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79832

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |9.0
 Status|NEW |RESOLVED

--- Comment #4 from Andrew Pinski  ---
DR1213 was fixed in GCC 9+ by the following two revisions:
r9-595
r9-711

And the two testcases here work for GCC 9+ so closing as fixed.

[Bug c++/79832] [C++14/17] result of subscripting non lvalue array should be xvalue

2018-05-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79832

Jonathan Wakely  changed:

   What|Removed |Added

 CC||yaghmour.shafik at gmail dot 
com

--- Comment #3 from Jonathan Wakely  ---
*** Bug 85867 has been marked as a duplicate of this bug. ***

[Bug c++/79832] [C++14/17] result of subscripting non lvalue array should be xvalue

2018-05-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79832

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-05-22
 Ever confirmed|0   |1

[Bug c++/79832] [C++14/17] result of subscripting non lvalue array should be xvalue

2017-08-29 Thread listcrawler at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79832

listcrawler at gmail dot com changed:

   What|Removed |Added

 CC||listcrawler at gmail dot com

--- Comment #2 from listcrawler at gmail dot com ---
// bumping bug with some asserts for test bench

#include 
#include 

int main ()
{
typedef int U [1];
U u;
static_assert ((std::is_same ::value), "");
static_assert ((std::is_same ::value), "");
static_assert ((std::is_same ::value),
"");
static_assert ((std::is_same ::value), "");

static_assert ((std::is_same ::value), "");
static_assert ((std::is_same ::value), "");
static_assert ((std::is_same ::value), "");
}

[Bug c++/79832] [C++14/17] result of subscripting non lvalue array should be xvalue

2017-03-03 Thread felix.morgner at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79832

--- Comment #1 from Felix Morgner  ---
adjusted the title to be more clear. sorry!