OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
const4.C
1
// { dg-do assemble }
2
// PRMS Id: 8927
3
// Bug: complex inheritance interferes with const checking
4
5
class GrandParent {
6
public:
7
virtual void DoIt();
8
protected:
9
int A;
10
};
11
12
class Parent : virtual public GrandParent {
13
public:
14
virtual void DoX() const;
15
};
16
17
class Child : public Parent {
18
public:
19
void DoX() const;
20
};
21
22
void Child::DoX() const
23
{
24
A = 10; // { dg-error "" } assignment to const
25
}