1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<typename
> struct Y1
;
3 template<typename
, int> struct Y2
;
5 template<class T1
= int, // expected-note{{previous default template argument defined here}}
6 class T2
> // expected-error{{template parameter missing a default argument}}
9 template<template<class> class = Y1
, // expected-note{{previous default template argument defined here}}
10 template<class> class> // expected-error{{template parameter missing a default argument}}
13 template<int N
= 5, // expected-note{{previous default template argument defined here}}
14 int M
> // expected-error{{template parameter missing a default argument}}