This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58972] Lambda can't access private members


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972

--- Comment #11 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Reduced further:

class base
{
protected:
  typedef int type;
};


template <typename T>
class derive: public base
{
public:
  void foo()
  {
    struct f_t {
      f_t(base::type a) {}
    };
  }
};

int main()
{
  derive<char> d;
  d.foo();
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]