public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107146] New: [ICE] in build_value_init, at cp/init.cc:347
@ 2022-10-04 5:21 tim at klingt dot org
2022-10-04 5:26 ` [Bug c++/107146] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tim at klingt dot org @ 2022-10-04 5:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107146
Bug ID: 107146
Summary: [ICE] in build_value_init, at cp/init.cc:347
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tim at klingt dot org
Target Milestone: ---
Created attachment 53665
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53665&action=edit
-freport-bug output
this ICE happens with g++-12, but not with g++-11 (code is based on boost.pfr)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/107146] [ICE] in build_value_init, at cp/init.cc:347
2022-10-04 5:21 [Bug c++/107146] New: [ICE] in build_value_init, at cp/init.cc:347 tim at klingt dot org
@ 2022-10-04 5:26 ` pinskia at gcc dot gnu.org
2022-10-04 5:31 ` tim at klingt dot org
2022-10-04 18:25 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-04 5:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107146
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems like it was fixed already in GCC 12.2.0.
testcase.ii: In instantiation of 'void fields_count() [with T = my_class]':
testcase.ii:18:3: required from 'void binary_visit(T, U) [with
<template-parameter-1-1> = less_impl; T = my_class*; U = my_class]'
testcase.ii:21:26: required from 'void lt_fields(T, U) [with T = my_class*; U
= my_class]'
testcase.ii:30:43: required from here
testcase.ii:6:37: error: no matching function for call to
'detect_fields_count_dispatch<type>(<brace-enclosed initializer list>, int,
int)'
testcase.ii:3:6: note: candidate: 'template<class T, long int N> decltype (T{})
detect_fields_count_dispatch(size_t_<N>, long int, int)'
testcase.ii:3:6: note: template argument deduction/substitution failed:
testcase.ii:6:37: note: couldn't deduce template parameter 'N'
Most likely fixed by the patch for PR 105589 .
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/107146] [ICE] in build_value_init, at cp/init.cc:347
2022-10-04 5:21 [Bug c++/107146] New: [ICE] in build_value_init, at cp/init.cc:347 tim at klingt dot org
2022-10-04 5:26 ` [Bug c++/107146] " pinskia at gcc dot gnu.org
@ 2022-10-04 5:31 ` tim at klingt dot org
2022-10-04 18:25 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: tim at klingt dot org @ 2022-10-04 5:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107146
tim blechmann <tim at klingt dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from tim blechmann <tim at klingt dot org> ---
yes, 105589 looks like a duplicate
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/107146] [ICE] in build_value_init, at cp/init.cc:347
2022-10-04 5:21 [Bug c++/107146] New: [ICE] in build_value_init, at cp/init.cc:347 tim at klingt dot org
2022-10-04 5:26 ` [Bug c++/107146] " pinskia at gcc dot gnu.org
2022-10-04 5:31 ` tim at klingt dot org
@ 2022-10-04 18:25 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-04 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107146
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |DUPLICATE
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** This bug has been marked as a duplicate of bug 105589 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-04 18:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 5:21 [Bug c++/107146] New: [ICE] in build_value_init, at cp/init.cc:347 tim at klingt dot org
2022-10-04 5:26 ` [Bug c++/107146] " pinskia at gcc dot gnu.org
2022-10-04 5:31 ` tim at klingt dot org
2022-10-04 18:25 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).