[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-17 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-17 Thread dmalcolm at gcc dot gnu.org
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

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-17 Thread jakub at gcc dot gnu.org
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)); } };

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-17 Thread jakub at gcc dot gnu.org
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. ***

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-16 Thread larsbj at gullik dot net
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

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-16 Thread dcb314 at hotmail dot com
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()

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread dmalcolm at gcc dot gnu.org
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

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread dcb314 at hotmail dot com
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.

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread skpgkp1 at gmail dot com
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

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread dcb314 at hotmail dot com
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.

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814 Jakub Jelinek changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-12 Thread trippels 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