public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95982] New: ICE with non-type template parameter that is itself the instantiation of a template
@ 2020-06-29 18:18 bence.kodaj at gmail dot com
  2020-06-29 18:27 ` [Bug c++/95982] " bence.kodaj at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bence.kodaj at gmail dot com @ 2020-06-29 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95982
           Summary: ICE with non-type template parameter that is itself
                    the instantiation of a template
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bence.kodaj at gmail dot com
  Target Milestone: ---

The code below causes an ICE saying "unexpected expression ‘<anonymous>’ of
kind template_parm_index".
OS: Ubuntu 18.04
g++ version: 10.1.0
Wandbox URL: https://wandbox.org/permlink/A9ImqBRe5vyZMFWC#

---------------------------
#include <type_traits>

template< typename, template< auto > typename >
struct IsImplementationOf : std::false_type {};

template< template< auto > typename Template, auto Arg >
struct IsImplementationOf< Template< Arg >, Template > : std::true_type {};

template< typename T >
struct X {
    constexpr X( T ) {}
};

template< X > struct Y {};

int main()
{
    static_assert( IsImplementationOf< Y< X(0) >, Y > );

    return 0;
}
---------------------------

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

end of thread, other threads:[~2022-05-11 16:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 18:18 [Bug c++/95982] New: ICE with non-type template parameter that is itself the instantiation of a template bence.kodaj at gmail dot com
2020-06-29 18:27 ` [Bug c++/95982] " bence.kodaj at gmail dot com
2020-06-29 18:28 ` bence.kodaj at gmail dot com
2020-07-08 22:52 ` [Bug c++/95982] [10 Regression] " mpolacek at gcc dot gnu.org
2020-07-23  6:52 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-11-11 14:38 ` bence.kodaj at gmail dot com
2022-05-11 16:49 ` bence.kodaj at gmail dot com

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).