public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105692] New: internal compiler error: in finish_expr_stmt, at cp/semantics.cc:872
@ 2022-05-22 17:00 elmar.braun at web dot de
2022-05-23 11:43 ` [Bug c++/105692] ICE in finish_expr_stmt, at cp/semantics.cc:872 since r9-4045-g0c1e0d63fe0ceabb marxin at gcc dot gnu.org
2024-04-13 8:07 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: elmar.braun at web dot de @ 2022-05-22 17:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105692
Bug ID: 105692
Summary: internal compiler error: in finish_expr_stmt, at
cp/semantics.cc:872
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: elmar.braun at web dot de
Target Milestone: ---
Created attachment 53015
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53015&action=edit
output of compiling with -freport-bug
Reduced testcase:
template <typename T>
using lambda = decltype([] {});
template <typename Lambda>
void f3() {}
template <typename T>
void f2() {
f3<lambda<T>>();
}
void f1() {
f2<int>();
}
Compiling this with GCC 12.1.0, using the command line "g++-12.1 -std=c++20
-Wall -Wextra bug.cpp", results in the following error message:
bug.cpp: In instantiation of ‘void f2() [with T = int]’:
bug.cpp:13:10: required from here
bug.cpp:9:3: internal compiler error: in finish_expr_stmt, at
cp/semantics.cc:872
9 | f3<lambda<T>>();
Exact version of GCC, system type, and options given when GCC was configured
can be found in the attached output from -freport-bug.
I was also able to reproduce the issue on godbolt.org
(https://godbolt.org/z/3344WMcWT). Clang 14 and the latest MSVC compile this
code without problems.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/105692] ICE in finish_expr_stmt, at cp/semantics.cc:872 since r9-4045-g0c1e0d63fe0ceabb
2022-05-22 17:00 [Bug c++/105692] New: internal compiler error: in finish_expr_stmt, at cp/semantics.cc:872 elmar.braun at web dot de
@ 2022-05-23 11:43 ` marxin at gcc dot gnu.org
2024-04-13 8:07 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-23 11:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105692
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|internal compiler error: in |ICE in finish_expr_stmt, at
|finish_expr_stmt, at |cp/semantics.cc:872 since
|cp/semantics.cc:872 |r9-4045-g0c1e0d63fe0ceabb
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-05-23
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-4045-g0c1e0d63fe0ceabb, was rejected before the revision.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/105692] ICE in finish_expr_stmt, at cp/semantics.cc:872 since r9-4045-g0c1e0d63fe0ceabb
2022-05-22 17:00 [Bug c++/105692] New: internal compiler error: in finish_expr_stmt, at cp/semantics.cc:872 elmar.braun at web dot de
2022-05-23 11:43 ` [Bug c++/105692] ICE in finish_expr_stmt, at cp/semantics.cc:872 since r9-4045-g0c1e0d63fe0ceabb marxin at gcc dot gnu.org
@ 2024-04-13 8:07 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-13 8:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105692
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Target Milestone|--- |14.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk for GCC 14 by the recent lambda template patches.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-13 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-22 17:00 [Bug c++/105692] New: internal compiler error: in finish_expr_stmt, at cp/semantics.cc:872 elmar.braun at web dot de
2022-05-23 11:43 ` [Bug c++/105692] ICE in finish_expr_stmt, at cp/semantics.cc:872 since r9-4045-g0c1e0d63fe0ceabb marxin at gcc dot gnu.org
2024-04-13 8:07 ` 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).