view gcc/testsuite/g++.dg/template/dr1794.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// DR 1794 - template keyword and alias templates.
// { dg-do compile { target c++11 } }

template<template<typename> class Template>
struct Internal {
  template<typename Arg>
  using Bind = Template<Arg>;
};

template<template<typename> class Template, typename Arg>
using Instantiate = Template<Arg>;

template<template<typename> class Template, typename Argument>
using Bind = Instantiate<Internal<Template>::template Bind, Argument>;