------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-06 09:07 ------- Note this was found while trying to fix PR 32628.
The diagnostic issue is at least a regression from 4.0.1. Well and the accepts invalid (without -pedantic-errors for the first testcase). The second testcase was accepted wrongly in 4.0.1 also. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.3.0 Known to work| |4.0.1 Summary|Wrong error message with |[4.3 Regression] Wrong error |unsigned char a = uchar&512 |message with unsigned char a | |= uchar&512 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32643