| 1 |
// PR c++/112737 |
| 2 |
// { dg-do compile { target c++17 } } |
| 3 |
|
| 4 |
template<template<class> class TT> |
| 5 |
decltype(TT{42}) f(); // #1 |
| 6 |
|
| 7 |
template<template<class> class TT> |
| 8 |
decltype(TT{42}) f(); // redeclaration of #1 |
| 9 |
|
| 10 |
template<class T> struct A { A(T); }; |
| 11 |
|
| 12 |
int main() { |
| 13 |
f<A>(); |
| 14 |
} |