annotate gcc/testsuite/g++.dg/template/crash85.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
kono
parents:
diff changeset
2 // Origin: PR c++/37142
kono
parents:
diff changeset
3 // { dg-do compile }
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 template<typename T, const T a, template <typename U, U u> class W> struct A {};
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 template<typename T, const T t> struct B {};
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int
kono
parents:
diff changeset
10 main ()
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 A<long, 0, B> a;
kono
parents:
diff changeset
13 return 0;
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15