// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s -DCPP11
// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s -DCPP17
// There is no semantic difference between class and typename in a
// template-parameter. typename followed by an unqualified-id names a
// template type parameter.
;
;
// typename followed by a qualified-id denotes the type in a non-type
// parameter-declaration.
;
;
; // expected-error{{expected ',' or '>'}}
; // expected-error{{expected a qualified name after 'typename'}} expected-error{{expected ',' or '>'}}
; // expected-error{{expected template parameter}} expected-note {{did you mean to use 'typename'?}} expected-error{{expected ',' or '>'}}
// A storage class shall not be specified in a template-parameter declaration.
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error2{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; // OK
; // OK
; //expected-error{{invalid declaration specifier}}
; //expected-error{{invalid declaration specifier}}
; // OK
// Make sure that we properly disambiguate non-type template parameters that
// start with 'class'.
;
;
// FIXME: add the example from p2