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
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
const5.C
blob
fa8d8fc23905ee8f1783945e6d125bf4fba1ffa8
1
// PR c++/31449
2
3
class Foo {};
4
class Bar : public Foo {};
5
static const Foo *foo = 0;
6
7
static Bar *bar = static_cast<const Bar*>(foo); // { dg-error "conversion" }
8
9
void func(const Foo *foo) {
10
Bar *bar = static_cast<const Bar*>(foo); // { dg-error "conversion" }
11
}