Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr98353.C

raw
1 // PR c++/98353
2 // { dg-do compile { target c++11 } }
3
4 template <int N> struct A {};
5 template <typename T>
6 struct B
7 {
8 static const int n = 1;
9 template <class> A <B<T>::n> foo ();
10 _Complex double c[2], d = 1.0;
11 };
12
13 void
14 bar ()
15 {
16 B<int>().foo<int> ();
17 }