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
* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload1.C
1
// { dg-do assemble }
2
// Bug: g++ thinks there is a conversion from void * to B *.
3
4
struct A {
5
operator void* ();
6
};
7
8
struct B: public A { };
9
10
void bar (A& a) {
11
B* bp = (B*)a; // { dg-error "" }
12
}