c++: ttp TEMPLATE_DECL equivalence [PR112737]
[official-gcc.git] / gcc / testsuite / g++.dg / template / ttp43.C
blobafafd321348d763969460a31998336d2a36e9bd6
1 // PR c++/112737
2 // { dg-do compile { target c++11 } }
4 template<template<class> class, class T>
5 void g(T);
7 template<template<class> class TT, class T>
8 decltype(g<TT>(T{})) f(T); // #1
10 template<template<class> class TT, class T>
11 decltype(g<TT>(T{})) f(T); // redeclaration of #1
13 template<class T> struct A;
15 int main() {
16   f<A>(0);