Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/init10.C

raw
1 // { dg-do assemble }
2 // GROUPS passed initialization
3 // init file
4 // From: Ingo Donasch <[email protected]>
5 // Date: Wed, 16 Jun 93 13:28:55 +01:00
6 // Subject: g++-2.4.2 bug report
7 // Message-ID: <[email protected]>
8
9 class b;
10
11 class a {
12 public:
13 a(const b*); // needs this parameter
14 };
15
16 class b {
17 private:
18 a three[3];
19 public:
20 b();
21 };
22
23 b::b() : three(this) // { dg-error "array|could not convert" }
24 {
25 }
26