https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123155
Bug ID: 123155
Summary: Non-reserved parameter name B in
avx10_2-512bf16intrin.h
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: pkk at spth dot de
Target Milestone: ---
The parameter name B is not reserved for use by the implementation. Also, it is
short and capitalized, so users are likely to use it as macro name. This
results in compilation failing (which both me and others ran into when
compiling uCsim with GCC).
The header avx10_2-512bf16intrin.h uses mostly "__B", which is fine, but there
are some plain "B", most, but not all just before a typo in a comment, e.g.:
#define _mm512_mask_cmp_pbh_mask(A, B, C, D) \
((__mmask32) __builtin_ia32_cmpbf16512_mask ((B), (C), (D), (A)))
#define _mm512_cmp_pbh_mask(A, B, C) \
((__mmask32) __builtin_ia32_cmpbf16512_mask ((A), (B), (C), (-1)))
#endif /* __OPIMTIZE__ */