This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67147] [concepts] ICE on checking concept with default template arguments


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

--- Comment #4 from Antony Polukhin <antoshkka at gmail dot com> ---
Shorter reproducer:

template<typename T, int = sizeof(T)> concept bool fn = true;
template <fn T> int test();



Above sample produces the following output:

<source>:1:28: internal compiler error: in tsubst, at cp/pt.c:14368

 template<typename T, int = sizeof(T)> concept bool fn = true;

                            ^~~~~~~~~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]