blob: 2fabfe9db833acf0d59f053891f7bc8de986769a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Build don't link:
// GROUPS passed typeck
// typeck file
// From: vern@daffy.ee.lbl.gov (Vern Paxson)
// Date: 24 Sep 1992 23:11:22 GMT
// Subject: 2.2.2 type-checking error (?) when comparing pointers
// Message-ID: <26475@dog.ee.lbl.gov>
class a { };
class foo : a { };
class bar : a { };
test( const foo* f, const bar* b )
{
return f == b;// ERROR -
}
|