* [Bug ipa/98000] g++-10 internal compiler error: verify_cgraph_node failed
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
@ 2020-11-26 6:11 ` ishikawa at yk dot rim.or.jp
2020-11-26 6:14 ` ishikawa at yk dot rim.or.jp
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ishikawa at yk dot rim.or.jp @ 2020-11-26 6:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
--- Comment #1 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
I noticed a similar Bug 97551.
But I seem to be using different options and I think I may be using a different
construct that triggers the ICE, and thus filed this entry.
I believe more reproducible cases would help.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] g++-10 internal compiler error: verify_cgraph_node failed
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
2020-11-26 6:11 ` [Bug ipa/98000] " ishikawa at yk dot rim.or.jp
@ 2020-11-26 6:14 ` ishikawa at yk dot rim.or.jp
2020-11-26 9:36 ` marxin at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ishikawa at yk dot rim.or.jp @ 2020-11-26 6:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
--- Comment #2 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
I forgot. The g++-10 version is as follows.
ishikawa@ip030:/NREF-COMM-CENTRAL/mozilla$ gcc --version
gcc (Debian 10.2.0-16) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] g++-10 internal compiler error: verify_cgraph_node failed
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
2020-11-26 6:11 ` [Bug ipa/98000] " ishikawa at yk dot rim.or.jp
2020-11-26 6:14 ` ishikawa at yk dot rim.or.jp
@ 2020-11-26 9:36 ` marxin at gcc dot gnu.org
2020-11-26 10:17 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
Last reconfirmed| |2020-11-26
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Thank you for the report, it's very likely a different issue.
I'm reducing that right now..
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] g++-10 internal compiler error: verify_cgraph_node failed
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (2 preceding siblings ...)
2020-11-26 9:36 ` marxin at gcc dot gnu.org
@ 2020-11-26 10:17 ` marxin at gcc dot gnu.org
2020-11-26 10:18 ` [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4 marxin at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 10:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat pr98000.C
struct {
template <typename T> T *operator()(T);
} hb_addressof;
template <typename, typename, typename... Ts> static int _hb_cmp_method(Ts...)
{
return 0;
}
template <typename V, typename K>
inline bool hb_bsearch_impl(K key, V, int compar(void *, void *)) {
V p;
int __trans_tmp_2 = *hb_addressof(key) = compar(&__trans_tmp_2, p);
return false;
}
struct hb_array_t {
int arrayZ;
};
struct hb_sorted_array_t : hb_array_t {
void bsearch() {
hb_bsearch_impl(bsearch_impl_x, &arrayZ, _hb_cmp_method<int, int>);
}
int bsearch_impl_x;
};
template <typename Returned> struct hb_lazy_loader_t {
Returned *operator->();
};
namespace OT {
struct COLR;
}
struct hb_ot_face_t {
hb_lazy_loader_t<OT::COLR> COLR;
};
struct {
hb_ot_face_t table;
} hb_ot_color_glyph_get_layers_face;
namespace OT {
struct IntType {
typedef int wide_type;
operator wide_type();
};
struct UnsizedArrayOf;
struct OffsetTo {
template <typename Base> friend UnsizedArrayOf operator+(Base, OffsetTo);
};
template <typename, bool> using LOffsetTo = OffsetTo;
template <typename Type> using LNNOffsetTo = LOffsetTo<Type, false>;
struct UnsizedArrayOf {
void as_array(int);
};
struct SortedUnsizedArrayOf {
hb_sorted_array_t __trans_tmp_4;
void bsearch() { __trans_tmp_4.bsearch(); }
};
struct COLR {
SortedUnsizedArrayOf __trans_tmp_3;
int get_glyph_layers() {
__trans_tmp_3.bsearch();
int __trans_tmp_3 = numLayers;
(this + layersZ).as_array(__trans_tmp_3);
}
LNNOffsetTo<int> layersZ;
IntType numLayers;
};
} // namespace OT
void hb_ot_color_glyph_get_layers() {
hb_ot_color_glyph_get_layers_face.table.COLR->get_glyph_layers();
}
fails with:
g++ pr98000.C -c -fchecking -Og
since r10-7306-g72b3bc895f023bf4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (3 preceding siblings ...)
2020-11-26 10:17 ` marxin at gcc dot gnu.org
@ 2020-11-26 10:18 ` marxin at gcc dot gnu.org
2020-11-26 13:37 ` ishikawa at yk dot rim.or.jp
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 10:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.3
Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org
Status|ASSIGNED |NEW
Summary|g++-10 internal compiler |[10/11 Regression] ICE
|error: verify_cgraph_node |verify_cgraph_node failed
|failed |since
| |r10-7306-g72b3bc895f023bf4
CC| |hubicka at gcc dot gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (4 preceding siblings ...)
2020-11-26 10:18 ` [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4 marxin at gcc dot gnu.org
@ 2020-11-26 13:37 ` ishikawa at yk dot rim.or.jp
2020-11-26 14:22 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ishikawa at yk dot rim.or.jp @ 2020-11-26 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
--- Comment #5 from ishikawa,chiaki <ishikawa at yk dot rim.or.jp> ---
(In reply to Martin Liška from comment #3)
> Thank you for the report, it's very likely a different issue.
> I'm reducing that right now..
You are very welcome and
thank you for the reduction to simpler case in comment 4.
I used to work on compilers, interpreters, assemblers, etc. many moons ago, but
the current complexity of g++-10, and for that matter C++ and complex software
like mozilla thunderbird, is beyond a mere user like myself, especially trying
to reduce the memory usage by means of "clone on demand" sounds a very hairy
approach (hairy as in the old Hacker's dictionary meaning).
I AM impressed.
Thank you again.
(I would have used "Happy Hacking" in the old days, but nowadays, hacking only
seems to be taken to carry a very negative sense. Sad.)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (5 preceding siblings ...)
2020-11-26 13:37 ` ishikawa at yk dot rim.or.jp
@ 2020-11-26 14:22 ` marxin at gcc dot gnu.org
2021-01-14 9:48 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-26 14:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to ishikawa,chiaki from comment #5)
> (In reply to Martin Liška from comment #3)
> > Thank you for the report, it's very likely a different issue.
> > I'm reducing that right now..
>
> You are very welcome and
> thank you for the reduction to simpler case in comment 4.
>
> I used to work on compilers, interpreters, assemblers, etc. many moons ago,
> but the current complexity of g++-10, and for that matter C++ and complex
> software like mozilla thunderbird, is beyond a mere user like myself,
> especially trying to reduce the memory usage by means of "clone on demand"
> sounds a very hairy approach (hairy as in the old Hacker's dictionary
> meaning).
You're welcome. To be honest, the modern C++ is complicated even for a GCC
developer like me.
For the reduction, I used C-Vise (https://github.com/marxin/cvise), so an
automated tool for reduction. For bisection I use my script which uses
pre-built binaries for all versions of the GCC (from part few years).
> I AM impressed.
>
> Thank you again.
> (I would have used "Happy Hacking" in the old days, but nowadays, hacking
> only seems to be taken to carry a very negative sense. Sad.)
I'm super-fine with that word. My manager uses it quite often and I like it.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (6 preceding siblings ...)
2020-11-26 14:22 ` marxin at gcc dot gnu.org
@ 2021-01-14 9:48 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-14 9:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking,
| |ice-on-valid-code
Priority|P3 |P2
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (7 preceding siblings ...)
2021-01-14 9:48 ` rguenth at gcc dot gnu.org
@ 2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2022-06-28 10:42 ` [Bug ipa/98000] [10/11/12/13 " jakub at gcc dot gnu.org
2023-07-07 10:38 ` [Bug ipa/98000] [11/12/13/14 " rguenth at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.3 |10.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.3 is being released, retargeting bugs to GCC 10.4.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [10/11/12/13 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (8 preceding siblings ...)
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
@ 2022-06-28 10:42 ` jakub at gcc dot gnu.org
2023-07-07 10:38 ` [Bug ipa/98000] [11/12/13/14 " rguenth at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ipa/98000] [11/12/13/14 Regression] ICE verify_cgraph_node failed since r10-7306-g72b3bc895f023bf4
2020-11-26 6:08 [Bug ipa/98000] New: g++-10 internal compiler error: verify_cgraph_node failed ishikawa at yk dot rim.or.jp
` (9 preceding siblings ...)
2022-06-28 10:42 ` [Bug ipa/98000] [10/11/12/13 " jakub at gcc dot gnu.org
@ 2023-07-07 10:38 ` rguenth at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98000
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 12+ messages in thread