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++.mike
/
explicit1.C
blob
28213ba377d598f821489f80678507d9787c1f31
1
struct A1 {
2
explicit A1(int) { }
3
} a1(1);
4
5
struct A {
6
explicit A(int);
7
} a(1);
8
9
A::A(int) {
10
}
11
12
void foo(A a) {
13
foo(a);
14
foo(1); // ERROR - not allowed
15
}