gcc/testsuite/g++.dg/template/partial-specialization12.C
raw| 1 | // PR c++/105289 |
| 2 | // CWG 455 (active) |
| 3 | // { dg-do compile { target c++11 } } |
| 4 | |
| 5 | template<class T> |
| 6 | struct value_type; |
| 7 | |
| 8 | template<class List, typename value_type<List>::type Element> |
| 9 | struct push_front_vlist; |
| 10 | |
| 11 | template<template<class X, X...> class XList, class T, T Arg, T... Vs> |
| 12 | struct push_front_vlist<XList<T, Vs...>, Arg> { }; // { dg-error "not more specialized" } |