[Bug c++/94767] (unsigned bitfield) + (int) operation results in int, not unsigned int.

2020-04-27 Thread jh718.park at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94767 jh718.park at samsung dot com changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug c++/94767] (unsigned bitfield) + (int) operation results in int, not unsigned int.

2020-04-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94767 --- Comment #3 from Jonathan Wakely --- (In reply to jh718.park from comment #0) > For these variables below, > > unsigned m_schemeEnd : 26; > unsigned m_userStart; > > m_userStart == m_schemeEnd + 1 > > this comparison emits a compiler

[Bug c++/94767] (unsigned bitfield) + (int) operation results in int, not unsigned int.

2020-04-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94767 Richard Biener changed: What|Removed |Added Keywords||diagnostic, wrong-code Ever

[Bug c++/94767] (unsigned bitfield) + (int) operation results in int, not unsigned int.

2020-04-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94767 --- Comment #1 from Andrew Pinski --- I think this has been fixed on the trunk.