Douglas Gregor 0eaa2bfe79 Don't add an imported function into its lexical context until *after*
we've set all of its parameters. Fixes <rdar://problem/8499598>;
thanks to Sean for the diagnosis.

llvm-svn: 115387
2010-10-01 23:55:07 +00:00

16 lines
143 B
C++

struct A {
int x;
};
struct B : A {
float y;
float foo();
};
struct C {
C(int i = 10);
C(const C&);
C &operator=(C&);
~C();
};