Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/instantiate13.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 11 Jan 2001 <[email protected]>
5
6 // Bug 1551. We were accessing some uninitialized memory, causing us
7 // to reject this.
8
9 template <typename T>
10 struct base
11 {
12 base();
13 base(unsigned);
14 };
15
16 template <typename V>
17 struct Y
18 {
19 Y(unsigned = 0);
20 };
21
22 template <>
23 Y<char>::Y(unsigned) { }
24
25 base<double> x;