hubert.reinterpretcast added a comment.

This does not work for friend declarations.

  template <typename T>
  struct A {
    friend T::S::~S();
  private:
    static constexpr int secret = 42;
  };
  
  struct Q {
    struct S { ~S(); };
  };
  
  Q::S::~S() {
    void foo(int);
    foo(A<Q>::secret);
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130936/new/

https://reviews.llvm.org/D130936

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to