This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58972] Lambda can't access private members
- From: "ville.voutilainen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Dec 2014 14:11:35 +0000
- Subject: [Bug c++/58972] Lambda can't access private members
- Auto-submitted: auto-generated
- References: <bug-58972-4 at http dot gcc dot gnu dot org/bugzilla/>
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();
}