Home | History | Annotate | Download | only in temp.param
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 template<typename> struct Y1;
      3 template<typename, int> struct Y2;
      4 
      5 template<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 
      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}}
     11   class B1t;
     12 
     13 template<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