https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90149
Bug ID: 90149
Summary: diagnostics containing BIT_FIELD_REF don't conform to
diagnostics guideline
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
The guideline for diagnostics
(https://gcc.gnu.org/onlinedocs/gccint/Guidelines-for-Diagnostics.html) says:
> 27.1.1 Talk in terms of the user’s code
From tree-cfg.c:
error ("BIT_FIELD_REF of non-mode-precision operand");
The word BIT_FIELD_REF (in uppercase) appears neither in the C nor in the C++
standard. Therefore it is probably not "in terms of the user's code".
This error message should probably be an internal error instead. This also
applies to many other diagnostics, especially those in tree-cfg.c.