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
Update ChangeLogs and version numbers for 2.95.3 release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p418.C
blob
6e868c7ec0d3d79f2f89991526e0a5a38eae0469
1
// Build don't link:
2
// prms-id: 418
3
4
class Base {
5
public:
6
int foo;
7
};
8
9
class Derived : public Base {
10
public:
11
int bar;
12
};
13
14
void func(Base&); // ERROR - referenced by error below
15
16
void func2(const Derived& d) {
17
func(d); // ERROR - should be error because of const
18
}