From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32073 invoked by alias); 25 May 2013 02:53:26 -0000 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 Received: (qmail 32004 invoked by uid 48); 25 May 2013 02:53:13 -0000 From: "superbem at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57408] New: lambda, Variable length arrays, thread, internal compiler error: in expand_expr_real_1, at expr.c:9327 Date: Sat, 25 May 2013 02:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: superbem at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg01776.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57408 Bug ID: 57408 Summary: lambda, Variable length arrays, thread, internal compiler error: in expand_expr_real_1, at expr.c:9327 Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: superbem at gmail dot com #include #include using namespace std; int main(){ int y=2; float fa[2][y]; // thread compile fine if y were 2 hardcoded instead fa[0][0]=0.8; fa[0][1]=1.8; auto fx=[&](){ for(int c=0;c<2;c++){ // thread compile fine if c<2 were c<1 instead printf("\n%f",fa[0][c]); // (1*) "internal compiler error: in expand_expr_real_1, at expr.c:9327" } }; fx(); // works fine everytime thread(fx).join(); //error (1*) }