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