8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/soverload.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

11 lines
260 B
C

// Bug: dfs_pushdecls doesn't create an overload list for member functions,
// like it claims to.
// Build don't link:
struct A
{
static int foo (int);
static int foo (int, int);
void bar () { foo (1, 2); } // gets bogus error - broken overloading
};