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++.jason
/
rfg4.C
blob
2b883950cb720aa820391c905fc45d2f6c955aee
1
// Bug: f1 and f2 are treated as overloaded when they aren't.
2
// Build don't link:
3
// Special g++ Options: -ansi -pedantic-errors -w
4
5
int i;
6
void f1(double) { }
7
void f2(double) { }
8
9
void
10
test ()
11
{
12
i ? f1 : f2; // gets bogus error - improper overloading
13
}