public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115425] New: ICE: tree check: expected type_pack_expansion or expr_pack_expansion, have error_mark in tsubst_pack_expansion, at cp/pt.cc:13778
@ 2024-06-11  3:01 hewillk at gmail dot com
  2024-06-11  4:06 ` [Bug c++/115425] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hewillk at gmail dot com @ 2024-06-11  3:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115425

            Bug ID: 115425
           Summary: ICE: tree check: expected type_pack_expansion or
                    expr_pack_expansion, have error_mark in
                    tsubst_pack_expansion, at cp/pt.cc:13778
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

This seems like 15 regressions and may related to the constexpr static local
variable.

https://godbolt.org/z/sf4f3Woqa

#include <tuple>

template<std::size_t... Is>
void foo(std::index_sequence<Is...>);

template<auto>
struct S;

template<class T>
auto test() {
  using Seq = std::make_index_sequence<std::tuple_size_v<T>>;
  constexpr static auto x = foo<Seq>();
  return []<std::size_t... Is>(std::index_sequence<Is...>) {
    (typename S<x[Is]>::type{}, ...);
  }(std::make_index_sequence<0>{});
}

int main() {
  test<std::tuple<>>();
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-25 19:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11  3:01 [Bug c++/115425] New: ICE: tree check: expected type_pack_expansion or expr_pack_expansion, have error_mark in tsubst_pack_expansion, at cp/pt.cc:13778 hewillk at gmail dot com
2024-06-11  4:06 ` [Bug c++/115425] " pinskia at gcc dot gnu.org
2024-06-12  3:29 ` [Bug c++/115425] [13/14/15 regression] " sjames at gcc dot gnu.org
2024-06-13 16:29 ` mpolacek at gcc dot gnu.org
2024-06-14  0:01 ` mpolacek at gcc dot gnu.org
2024-06-25 19:14 ` cvs-commit at gcc dot gnu.org
2024-06-25 19:20 ` [Bug c++/115425] [13/14 " 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).