public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103769] New: ICE in hashtab_chk_error alias template and pack expansion
@ 2021-12-19 16:39 ppalka at gcc dot gnu.org
  2021-12-19 16:42 ` [Bug c++/103769] [11/12 Regression] checking ICE in hashtab_chk_error with alias template and pack expansion after r11-7931 ppalka at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-12-19 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103769
           Summary: ICE in hashtab_chk_error alias template and pack
                    expansion
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat testcase.C
template<int __v> struct integral_constant { static const int value = __v; };
template<bool, class> struct enable_if;
template<bool _Bp, class _Tp> using __enable_if_t = enable_if<_Bp, _Tp>;
template<class...> using void_t = void;
template<class... _Pred> void_t<__enable_if_t<_Pred::value, void>...> foo();
using type = decltype(foo<integral_constant<1>>());

$ cat testcase.C | g++ --param=hash-table-verification-limit=1000 -x c++ -
hash table checking failed: equal operator returns true for a pair of values
with a different hash value
<stdin>: In substitution of ‘template<class ...> using void_t = void [with
<template-parameter-1-1> = {__enable_if_t<_Pred::value, void>...}]’:
<stdin>:5:71:   required by substitution of ‘template<class ... _Pred>
void_t<enable_if<_Pred::value, void>...> foo() [with _Pred =
{integral_constant<1>}]’
<stdin>:6:48:   required from here
<stdin>:5:71: internal compiler error: in hashtab_chk_error, at
hash-table.c:137

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

end of thread, other threads:[~2022-11-30  5:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-19 16:39 [Bug c++/103769] New: ICE in hashtab_chk_error alias template and pack expansion ppalka at gcc dot gnu.org
2021-12-19 16:42 ` [Bug c++/103769] [11/12 Regression] checking ICE in hashtab_chk_error with alias template and pack expansion after r11-7931 ppalka at gcc dot gnu.org
2021-12-30 16:13 ` pinskia at gcc dot gnu.org
2021-12-30 16:18 ` pinskia at gcc dot gnu.org
2022-01-01  4:19 ` pinskia at gcc dot gnu.org
2022-01-07  8:05 ` slyfox at gcc dot gnu.org
2022-01-07  9:09 ` slyfox at gcc dot gnu.org
2022-01-07  9:27 ` marxin at gcc dot gnu.org
2022-01-08 20:02 ` slyfox at gcc dot gnu.org
2022-01-17 12:37 ` rguenth at gcc dot gnu.org
2022-03-23 14:10 ` jason at gcc dot gnu.org
2022-03-28 13:37 ` cvs-commit at gcc dot gnu.org
2022-03-28 19:13 ` [Bug c++/103769] [11 " cvs-commit at gcc dot gnu.org
2022-03-28 19:14 ` jason at gcc dot gnu.org
2022-03-29 19:02 ` alexander.lelyakin at googlemail dot com
2022-11-30  5:27 ` 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).