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
2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy7.C
blob
8c23c546d5d6088057354034daf4ff15a973bdcb
1
// { dg-options "-std=c++98" }
2
// PR c++/12226
3
4
class foo {
5
private:
6
foo(const foo &); // { dg-error "" }
7
public:
8
foo();
9
};
10
const foo &bar = foo(); // { dg-error "" }
11
12
class derived : public foo {
13
private:
14
derived(const derived&); // { dg-error "" }
15
public:
16
derived();
17
};
18
19
const foo& baz = derived(); // { dg-error "" }