On 25 December 2012 23:43, Rafael Espíndola <[email protected]> wrote:
> dgregor, I committed this as it was the lowest risk patch to fix the
> regression. Let me know if you think we should change the side marking
> the decls used instead.

I now went back and think that we should do it. The problem is that
with two phase lookup in

  static void f();
  static void f();
  template<typename T>
  static void g() {
    f();
  }
  static void f() {
  }
  void h() {
    g<int>();
  }

the call to f refers to the second decl, but it is only marked used at
the end of the translation unit during instantiation, after the third
f decl has been linked in.

Is the attached patch OK?

Cheers,
Rafael

Attachment: t.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to