https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
Richard Smith changed:
What|Removed |Added
CC||richard-gccbugzilla@metafoo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
--- Comment #6 from Andrew Pinski ---
(In reply to Ivan Sorokin from comment #5)
> I would suggest (In reply to Andrew Pinski from comment #4)
> > nullptr_t t, t1 = nullptr;
> > __builtin_memcpy(&a[0], &t, sizeof(t));
>
> > So I suspect thi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
--- Comment #5 from Ivan Sorokin ---
I would suggest (In reply to Andrew Pinski from comment #4)
> nullptr_t t, t1 = nullptr;
> __builtin_memcpy(&a[0], &t, sizeof(t));
> So I suspect this should be marked as invalid.
The questions is how G
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
--- Comment #4 from Andrew Pinski ---
A testcase where not doing the storing would might give wrong code:
using nullptr_t = decltype(nullptr);
[[gnu::noipa]]
void test(nullptr_t* p)
{
*p = nullptr;
}
int main(void)
{
nullptr_t t, t1 = n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864
Richard Biener changed:
What|Removed |Added
Keywords||missed-optimization
Component