public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/109860] New: ICE: in make_typename_type, at cp/decl.cc:4268 @ 2023-05-15 9:11 hewillk at gmail dot com 2023-05-15 14:55 ` [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename pinskia at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: hewillk at gmail dot com @ 2023-05-15 9:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109860 Bug ID: 109860 Summary: ICE: in make_typename_type, at cp/decl.cc:4268 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- #include <tuple> template<class T> concept C = requires { typename std::template tuple<T>; }; https://godbolt.org/z/MrrMvrbhT ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename 2023-05-15 9:11 [Bug c++/109860] New: ICE: in make_typename_type, at cp/decl.cc:4268 hewillk at gmail dot com @ 2023-05-15 14:55 ` pinskia at gcc dot gnu.org 2023-05-15 14:59 ` pinskia at gcc dot gnu.org 2023-05-16 16:23 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-05-15 14:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109860 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |8.1.0 Summary|ICE: in make_typename_type, |ICE: in make_typename_type |at cp/decl.cc:4268 |with redudant template in | |requires with typename Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This code is valid as far as I Know. Reduced testcase: ``` namespace t { template<class T> struct tuple {}; } template<class T> concept C = requires { typename t::template tuple<T>; }; ``` clang accepts the code. the template there is not needed but should be ok. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename 2023-05-15 9:11 [Bug c++/109860] New: ICE: in make_typename_type, at cp/decl.cc:4268 hewillk at gmail dot com 2023-05-15 14:55 ` [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename pinskia at gcc dot gnu.org @ 2023-05-15 14:59 ` pinskia at gcc dot gnu.org 2023-05-16 16:23 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-05-15 14:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109860 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-05-15 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename 2023-05-15 9:11 [Bug c++/109860] New: ICE: in make_typename_type, at cp/decl.cc:4268 hewillk at gmail dot com 2023-05-15 14:55 ` [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename pinskia at gcc dot gnu.org 2023-05-15 14:59 ` pinskia at gcc dot gnu.org @ 2023-05-16 16:23 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: mpolacek at gcc dot gnu.org @ 2023-05-16 16:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109860 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- The following adjusted test (added 'bool') started to ICE with r6-2674-g971e17ff87337a: commit 971e17ff87337ad533b51c2dff0bbdf607fa1faf Author: Andrew Sutton <andrew.n.sutton@gmail.com> Date: Fri Aug 7 05:44:49 2015 +0000 Add C++ Concepts TS support. namespace t { template<class T> struct tuple {}; } template<class T> bool concept C = requires { typename t::template tuple<T>; }; ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-16 16:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-05-15 9:11 [Bug c++/109860] New: ICE: in make_typename_type, at cp/decl.cc:4268 hewillk at gmail dot com 2023-05-15 14:55 ` [Bug c++/109860] ICE: in make_typename_type with redudant template in requires with typename pinskia at gcc dot gnu.org 2023-05-15 14:59 ` pinskia at gcc dot gnu.org 2023-05-16 16:23 ` 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).