blob: e239d88a438a2a2ade39abe6eb4774918c40c0a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 5 Mar 2004 <nathan@codesourcery.com>
// Origin: schmid@snake.iap.physik.tu-darmstadt.de
// Bug 14397: Bogus access error.
struct S {
S (int);
S(S const&);
private:
S(S&);
};
S foo()
{
int result = 0;
S s ((0,S (result)));
return S (result);
}
|