[cfe-dev] Redeclaration of weak import causes assertion failure

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jan 9 19:18:04 PST 2013


This reduces to the awesome testcase:

template <typename T>
void f(T x) {
}
struct C {
  static void g() {
    f([](){});
  }
};
void g() {
  C::g();
}

It is awesome because the LV of [](){} is taken from that of g, and
that changes when g gets a body and we are building with
-fvisibility-inlines-hidden.

Trying to figure out how to solve this.

Cheers,
Rafael



More information about the cfe-dev mailing list