repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
covariant5.C
blob
a46b1bf20d8cd65b6a0c8c72f1f6d2d3e384c161
1
// { dg-do compile }
2
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 27 Dec 2002 <nathan@codesourcery.com>
5
6
// We ICE'd
7
8
struct c0 {};
9
10
struct c1 : virtual c0
11
{
12
virtual c0 &f2();
13
};
14
15
struct c3 : c1
16
{
17
virtual c1 &f2();
18
};
19
20
c1 &c3::f2()
21
{
22
throw 0;
23
}
24
25
struct c4 : virtual c3
26
{
27
};