Fix bug #4004, patch by Christopher Bazley.
Fix handling of qualifiers for non-intrinsic named address spaces in the fix for bug #4004.
New ticket for qualifiers for intrinsic named address spaces: [bugs:#4106].
Missing diagnostic when qualifier for intrinsic named address space is discarded from pointer target on function call
Missing diagnostic when qualifier is discarded from pointer target on function call
Thanks. Fixed in [r16956] via your patch.
Fix bug #4004, patch by Christopher Bazley.
That patch would still allow things like int a2 = _Alignof(int[][3][]); How about the attached fix instead (it passes the valdiag tests, including the one from your patch, and passes the regression tests for at least the test-ucz80 test-stm8-large test-pdk14 test-mcs51-small targets)?