[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587509: (no subject)



Package: g++-4.4
Version: 4.4.4-6

g++-4.4 is unable to compile the following source code line successfully with the compiler flag "std=gnu++0x":
  char table[] = { -1, -1 };

Example:
user@machine# g++-4.4 -std=gnu++0x -funsigned-char -c /tmp/test.c
/tmp/test.c:1: error: narrowing conversion of ‘-0x000000001’ from ‘int’ to ‘char’ inside { }
/tmp/test.c:1: error: narrowing conversion of ‘-0x000000001’ from ‘int’ to ‘char’ inside { }

Without the "--std=gnu++0x" flag, g++-4.4 succeeds:
user@machine# g++-4.4 -funsigned-char -c /tmp/test.c
<done>

This is a regression, since g++-4.3 succeeds either with or without the -std=gnu++0x flag,
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



Reply to: