1 // RUN: %clang_cc1 -fsyntax-only -std=c++98 -verify %s
3 // A default template-argument shall not be specified in a function
4 // template declaration or a function template definition
5 template<typename T
= int> // expected-warning{{default template arguments for a function template are a C++11 extension}}
7 template<typename T
= int> // expected-warning{{default template arguments for a function template are a C++11 extension}}
10 // [...] nor in the template-parameter-list of the definition of a
11 // member of a class template.
17 template<int N
= 0> // expected-error{{cannot add a default template argument}}
21 template<template<int> class TT
= X0
> // expected-error{{not permitted on a friend template}}