http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48570

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.12 12:16:25
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-12 
12:16:25 UTC ---
Confirmed, though better would be to test for != so that the correct exit value
is 0:

// PR c++/48570
// { dg-do run }
// { dg-options "-std=c++0x" }

int
main ()
{
  wchar_t z = L"01234"[1];
  return z != L'1';
}

This started failing with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170488

Reply via email to