repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ref1.C
blob
e239d88a438a2a2ade39abe6eb4774918c40c0a9
1
// Copyright (C) 2004 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 5 Mar 2004 <nathan@codesourcery.com>
3
4
// Origin: schmid@snake.iap.physik.tu-darmstadt.de
5
// Bug 14397: Bogus access error.
6
7
struct S {
8
S (int);
9
S(S const&);
10
private:
11
S(S&);
12
};
13
14
S foo()
15
{
16
int result = 0;
17
18
S s ((0,S (result)));
19
20
return S (result);
21
}