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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
parse9.C
blob
c0752f785e6462a05bf0233dd1cff0f9752f7edb
1
// { dg-do run }
2
// PRMS Id: 5720
3
// Bug: the extra set of parens confuses the expr/declarator disambiguation.
4
5
class Fu
6
{
7
int val;
8
public:
9
Fu(int i) : val(i) { };
10
void print() { }
11
};
12
13
int main(int argc, char * argv[])
14
{
15
int * i = &argc;
16
17
Fu((*i)).print(); // { dg-bogus "" }
18
Fu((*j));
19
}