https://bugs.kde.org/show_bug.cgi?id=469079

--- Comment #12 from Eugene Shalygin <eugene.shalygin+bugzilla....@gmail.com> 
---
The issue has not went away with update to GCC 13.2, so I sat down to create an
MWE only to discover that the problem is not directly controlled by the C++20
mode.

There is the following block for each _Float type in the
/usr/include/bits/floatn-common.h file:
#  if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef float _Float16 __attribute__ ((__mode__ (__HF__)));
#  endif

When the "Compiler for path" is set to "GCC" in the project options dialog, and
GCC version is  >= 13, the Clang parser then runs into "fatal error: too many
errors emitted, stopping now [-ferror-limit=]". My guess is __GNUC__ is defined
somewhere to the actual GCC version, which prevents glibc to define those
typedefs itself.

Maybe the C++20 mode changed the list of includes so that the error state is
triggered quicker.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to