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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p807.C
blob
7b343a50f4894126816e7bfd7d12e3e3d7ee7cf0
1
// { dg-do assemble }
2
// prms-id: 807
3
4
extern "C" int printf(const char*, ...);
5
6
class B;
7
8
class AX
9
{
10
protected:
11
int x;
12
13
public:
14
operator B();
15
};
16
17
18
class B
19
{
20
private:
21
int x;
22
public:
23
B(const AX&);
24
};
25
26
27
int foo(B& b); // { dg-error "" } referenced below
28
29
30
int main()
31
{
32
AX a;
33
foo(a); // { dg-error "" } Ambiguous B(a) or a.operator B() // See ARM 12.3.2
34
35
}