[Bug c++/105997] A possible optimization bug

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 16 10:34:33 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105997

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andreas Schwab from comment #2)
> This line is definitely a bug in ZynAddSubFX:
> 
> 1154:        bool is_dir = fn->d_type & DT_DIR;
> 
> d_type is not a bitfield.

Not all systems even have a dirent::d_type field (POSIX doesn't require it).


More information about the Gcc-bugs mailing list