https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46235
--- Comment #5 from chris.a.ferguson at gmail dot com ---
This optimization opportunity is still being missed as of GCC 4.9.
Test cases:
bool IsBitSet1(unsigned char byte, int index)
{
return (byte & (1<> index) & 1;
}
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chris.a.ferguson at gmail dot com
Target Milestone: ---
The following is a minimum example that fails to compile with GCC, but succeeds
with Clang and Intel compilers.
template
using vec __attribute__
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100766
--- Comment #2 from chris.a.ferguson at gmail dot com ---
(In reply to Jonathan Wakely from comment #1)
> Is this a duplicate of PR 100765 ?
Yes, this seems to be the same exact issue.