summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/expr1.C
blob: 079865d4eb511afc79b11bdbb6d9a0bcd19160df (plain)
1
2
3
4
5
6
7
8
// PR c++/18161
// { dg-options "" }

template <class T> struct Y;
template <> struct Y<bool> {};

template <typename T = typeof (1 == 1)> struct X { Y<T> a; };
template struct X <>;