From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24177 invoked by alias); 29 May 2014 18:38:00 -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 24151 invoked by uid 48); 29 May 2014 18:37:57 -0000 From: "wangn at ca dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8 Date: Thu, 29 May 2014 18:38: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.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: wangn at ca dot ibm.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: 2014-05/txt/msg02508.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61361 Bug ID: 61361 Summary: gcc segfaults on SLES12 beta4 P8 Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: wangn at ca dot ibm.com gcc segfaults on sles12 p8 machine. 1. gcc version: g++ (SUSE Linux) 4.8.2 20140324 [gcc-4_8-branch revision 208789] Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 2. source code: t.cpp: class A { static int aval; public: int get_val(); }; class B : public A { static int bval; public: int get_val(); int bf(); }; int B::bval=5; int B::get_val() {return bval;}; int B::bf() {return 3;}; int funcB() { B b; return b.get_val(); } 3. command: gcc -m64 -c t.cpp 4. output: g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. 5. expected output: compile pass note: pass on the following machine: Linux cit318 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:09:21 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux