public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8
@ 2014-05-29 18:38 wangn at ca dot ibm.com
  2014-06-02  8:28 ` [Bug c++/61361] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: wangn at ca dot ibm.com @ 2014-05-29 18:38 UTC (permalink / raw)
  To: gcc-bugs

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 <http://bugs.opensuse.org/> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61361] gcc segfaults on SLES12 beta4 P8
  2014-05-29 18:38 [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8 wangn at ca dot ibm.com
@ 2014-06-02  8:28 ` rguenth at gcc dot gnu.org
  2014-06-02 19:04 ` wangn at ca dot ibm.com
  2014-06-03  8:30 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-02  8:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Works with Beta3, gcc (SUSE Linux) 4.8.2 20140516 [gcc-4_8-branch revision
210491].  Also works with a cross compiler from x86_64.  Also works with
Beta8, GNU C++ (SUSE Linux) version 4.8.3 20140523 [gcc-4_8-branch revision
210846] (powerpc64le-suse-linux)

So - I can't reproduce this.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61361] gcc segfaults on SLES12 beta4 P8
  2014-05-29 18:38 [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8 wangn at ca dot ibm.com
  2014-06-02  8:28 ` [Bug c++/61361] " rguenth at gcc dot gnu.org
@ 2014-06-02 19:04 ` wangn at ca dot ibm.com
  2014-06-03  8:30 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: wangn at ca dot ibm.com @ 2014-06-02 19:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Nancy Wang <wangn at ca dot ibm.com> ---
(In reply to Richard Biener from comment #1)
> Works with Beta3, gcc (SUSE Linux) 4.8.2 20140516 [gcc-4_8-branch revision
> 210491].  Also works with a cross compiler from x86_64.  Also works with
> Beta8, GNU C++ (SUSE Linux) version 4.8.3 20140523 [gcc-4_8-branch revision
> 210846] (powerpc64le-suse-linux)
> 
> So - I can't reproduce this.

The problem was gone after upgrade to beta 7 sles12, I think sles12 beta 4 was
unstable. thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61361] gcc segfaults on SLES12 beta4 P8
  2014-05-29 18:38 [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8 wangn at ca dot ibm.com
  2014-06-02  8:28 ` [Bug c++/61361] " rguenth at gcc dot gnu.org
  2014-06-02 19:04 ` wangn at ca dot ibm.com
@ 2014-06-03  8:30 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-03  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-03  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-29 18:38 [Bug c++/61361] New: gcc segfaults on SLES12 beta4 P8 wangn at ca dot ibm.com
2014-06-02  8:28 ` [Bug c++/61361] " rguenth at gcc dot gnu.org
2014-06-02 19:04 ` wangn at ca dot ibm.com
2014-06-03  8:30 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).