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
libstdc++: remove JSON comment.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload24.C
blob
3aee9b3605a4c27a28542129d8336bcd6a2fb9f1
1
// { dg-do assemble }
2
// PRMS Id: 5124
3
// Bug: g++ promotes bar to int* too soon and the call to f fails.
4
5
typedef int arr[1];
6
7
struct A {
8
void f(void);
9
void f(arr &);
10
11
void g(void);
12
void g(int *);
13
14
void h(void);
15
};
16
17
18
void A::h(void)
19
{
20
arr bar;
21
f(bar);
22
g(bar);
23
}