https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
David Malcolm changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #13 from David Malcolm ---
Author: dmalcolm
Date: Wed Jan 17 17:51:25 2018
New Revision: 256804
URL: https://gcc.gnu.org/viewcvs?rev=256804&root=gcc&view=rev
Log:
C++: Fix crash in warn_for_memset within templates (PR c++/83814)
gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #12 from Jakub Jelinek ---
Testcase from another PR:
extern "C" void *memset (void *, int, __SIZE_TYPE__);
void *p;
template
struct B
{
void foo () { memset (p, 0, 4 * T * sizeof(float)); }
};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #11 from Jakub Jelinek ---
*** Bug 83902 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #10 from Lars Gullik Bjønnes ---
(In reply to David Malcolm from comment #8)
> Sorry about the breakage.
>
> Here's a candidate patch:
> https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01133.html
This fixes the ICE for me, with the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #9 from David Binderman ---
This similar code:
extern "C" void *memset(void *, int, unsigned long) ;
char *a ;
template < class b > void c() {
memset(a + sizeof(b), 0, 0);
}
does this:
bug411-b.cc: In function ‘void c()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #8 from David Malcolm ---
Sorry about the breakage.
Here's a candidate patch:
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01133.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #7 from David Binderman ---
Thanks for the small testcase. Problem seems to occur between
revisions 256420 and 256556. No special flags required. -c will do it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
Sunil Pandey changed:
What|Removed |Added
CC||skpgkp1 at gmail dot com
--- Comment #6 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
--- Comment #5 from David Binderman ---
The original source code for bug # 68619 and flag -O2,
seems to reproduce on x86_64.
I'll have a go at reducing that.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
David Malcolm changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
Jakub Jelinek changed:
What|Removed |Added
CC||dmalcolm at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
Markus Trippelsdorf changed:
What|Removed |Added
Keywords||ice-on-valid-code
Priori
13 matches
Mail list logo