From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5964 invoked by alias); 24 Nov 2012 10:04:14 -0000 Received: (qmail 5881 invoked by uid 48); 24 Nov 2012 10:03:56 -0000 From: "stepik-777 at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54403] [C++11] operator! applied to a member of a templated class in a lambda expression that captures 'this' pointer crashes compiler Date: Sat, 24 Nov 2012 10:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stepik-777 at mail dot ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg02243.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54403 stepik-777 at mail dot ru changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stepik-777 at mail dot ru --- Comment #4 from stepik-777 at mail dot ru 2012-11-24 10:03:55 UTC --- You can use !this->m_barbar intead of !m_barbar as a workaround. This bug is still present in 4.7.2. template struct Struct { int member; Struct() { [=]{ !this->member; }; // this works [=]{ !member; }; // internal compiler error: Segmentation fault } };