[Bug c++/108414] template meta programming

2023-01-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108414 --- Comment #3 from Jonathan Wakely --- Reduced: using size_t = decltype(sizeof(0)); template struct type_identity { using type = T; }; template constexpr bool is_same_v = false; template constexpr bool is_same_v = true; template struct type_l

[Bug c++/108414] template meta programming

2023-01-15 Thread amewo22370 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108414 --- Comment #2 from Евгений Лисицын --- (In reply to Andrew Pinski from comment #1) > > using nth_element_t = typename decltype([](const indexed > T>&){return std::type_identity{};}(make_indexer()))::type; > > There are some known issue with la

[Bug c++/108414] template meta programming

2023-01-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108414 Andrew Pinski changed: What|Removed |Added Keywords||c++-lambda, rejects-valid --- Comment #