public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115090] New: ICE in gimplify_expr, at gimplify.cc:18907 (deduced this)
@ 2024-05-14 13:44 jose at serrall dot es
2024-05-14 13:47 ` [Bug c++/115090] " jose at serrall dot es
2024-05-14 15:12 ` mpolacek at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jose at serrall dot es @ 2024-05-14 13:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115090
Bug ID: 115090
Summary: ICE in gimplify_expr, at gimplify.cc:18907 (deduced
this)
Product: gcc
Version: 14.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jose at serrall dot es
Target Milestone: ---
Created attachment 58205
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58205&action=edit
Preprocessed source
When porting code to use the new `deduced this` feature, I forgot to switch
`operator()` to `obj()` and got an ICE. Note that this happens even if
`operator()` takes no additional arguments.
Output of gcc --version:
gcc-14 (Homebrew GCC 14.1.0) 14.1.0
However, this also happens on online compilers when compiling for x86_64.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/115090] ICE in gimplify_expr, at gimplify.cc:18907 (deduced this)
2024-05-14 13:44 [Bug c++/115090] New: ICE in gimplify_expr, at gimplify.cc:18907 (deduced this) jose at serrall dot es
@ 2024-05-14 13:47 ` jose at serrall dot es
2024-05-14 15:12 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jose at serrall dot es @ 2024-05-14 13:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115090
--- Comment #1 from José Cruz Serrallés <jose at serrall dot es> ---
Pasting MRE here for convenience:
struct Base {
template <typename Derived>
constexpr void operator()(this Derived&& der) {
operator()();
}
};
int main() {
Base b;
b();
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/115090] ICE in gimplify_expr, at gimplify.cc:18907 (deduced this)
2024-05-14 13:44 [Bug c++/115090] New: ICE in gimplify_expr, at gimplify.cc:18907 (deduced this) jose at serrall dot es
2024-05-14 13:47 ` [Bug c++/115090] " jose at serrall dot es
@ 2024-05-14 15:12 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-05-14 15:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115090
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2024-05-14
Ever confirmed|0 |1
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r14-7075:
commit fbc980d85149409ce62c22f48d3693113803929e
Author: waffl3x <waffl3x@protonmail.com>
Date: Sun Jan 7 00:01:48 2024 +0000
c++: P0847R7 (deducing this) - initial functionality. [PR102609]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-14 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-14 13:44 [Bug c++/115090] New: ICE in gimplify_expr, at gimplify.cc:18907 (deduced this) jose at serrall dot es
2024-05-14 13:47 ` [Bug c++/115090] " jose at serrall dot es
2024-05-14 15:12 ` mpolacek 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).