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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
precedence.C
blob
a11abcdc52bed5e2d5457becb386c7bb3b0d891f
1
// { dg-do assemble }
2
// Bug: g++ groups ->* before casts.
3
// PRMS Id: 4484 (bug 4)
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)(); // { dg-bogus "" } incorrect precedence
14
}