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

Guille <guille at cal dot berkeley.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |guille at cal dot berkeley.edu

--- Comment #3 from Guille <guille at cal dot berkeley.edu> ---
For what it's worth, it compiles with the following modification [adding
"this->" to the Foo call]:

template<typename T> class B
{
    public:
        void Foo() {}
        void Bar()
        {
            [&]()
            {
                [&]() { this->Foo(); }();
            }();
        }
};

int main( int argc, char** argv )
{
    B<int> b;
    b.Bar();
    return 0;
}

Without the "this->", it compiles in neither 4.9.2, nor 5.0.0.

Reply via email to