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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
precedence.C
blob
af2dcde85a5a465795978c6df20224a9580411a2
1
// Bug: g++ groups ->* before casts.
2
// PRMS Id: 4484 (bug 4)
3
// Build don't link:
4
5
struct A { };
6
struct B : public A { void f (); };
7
8
void g ()
9
{
10
A* ap = new B;
11
void (B::*p)() = &B::f;
12
13
((B*)ap->*p)(); // gets bogus error - incorrect precedence
14
}