public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/60871] New: internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510
@ 2014-04-17 11:02 holger.hopp at sap dot com
  2014-04-17 11:07 ` [Bug ipa/60871] [4.9/4.10 Regression] " rguenth at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: holger.hopp at sap dot com @ 2014-04-17 11:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871

            Bug ID: 60871
           Summary: internal compiler error: in
                    possible_polymorphic_call_targets, at
                    ipa-devirt.c:1510
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: holger.hopp at sap dot com

Following code throws an internal compiler error with g++-4.9 -O2

$ g++ -O2 -c tst.c
tst.c: In static member function ‘static void C11::comp()’:
tst.c:88:1: internal compiler error: in possible_polymorphic_call_targets, at
ipa-devirt.c:1510
 }
 ^
0x9e77a8 possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, int*)
    ../../gcc/ipa-devirt.c:1510
0x9a3b67 possible_polymorphic_call_targets(tree_node*, bool*, void**)
    ../../gcc/ipa-utils.h:142
0x9a0d56 gimple_fold_call
    ../../gcc/gimple-fold.c:1126
0x9a0d56 fold_stmt_1
    ../../gcc/gimple-fold.c:1239
0xbbc5b9 fold_marked_statements
    ../../gcc/tree-inline.c:4541
0xbc9b54 optimize_inline_calls(tree_node*)
    ../../gcc/tree-inline.c:4622
0x10639b9 early_inliner
    ../../gcc/ipa-inline.c:2303
0x10639b9 execute
    ../../gcc/ipa-inline.c:2366
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Source:

void *vptr;

class C2
{
public:
  static inline C2 * cbss()
  {
    singleton = (C2 *)vptr;
    return singleton;
  }

private:
  static C2 * singleton;
};

class C3
{
public:
  C3(void) {}
  virtual void sf();
protected:
  unsigned m_local:1;
};

class C4 : virtual public C3
{
public:
 C4(void) : C3() {}
protected:
  void sf() { }
  void uf() { }
};

class C5
{
private:
  C3 * m_g;
public:
  C5(C3 * g) : m_g(g)  { m_g->sf(); }
};

class C6
{
public:
  virtual ~C6() {}
};

class C7 : public C6
{
protected:
  C7(void) {}
};

class C8 : public C4, public C7
{
public:
 C8(void) : C3(), C4(), C7() { }
};

class C9 : public C8
{
public:
 C9(void) : C3(), C8() { }
};

class C10 : public C9
{
protected:
 C10(void) : C3(), C9() { }    
};

class C11 : public C10
{
protected:
 C11( const C2 * s ) : C3(), C10() { }

public:
  static void comp(void)
  {
    C11 a(C2::cbss());
    C5 uf(&a);
  }
};

void foo (void)
{
  C11::comp();
}
>From gcc-bugs-return-449250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 17 11:03:11 2014
Return-Path: <gcc-bugs-return-449250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9822 invoked by alias); 17 Apr 2014 11:03:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9799 invoked by uid 48); 17 Apr 2014 11:03:08 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/60866] [4.7/4.8/4.9/4.10 Regression] ICE: in get_seqno_for_a_jump, at sel-sched-ir.c:4068 with -fselective-scheduling -fno-if-conversion
Date: Thu, 17 Apr 2014 11:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-60866-4-IucSdH7k1d@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60866-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60866-4@http.gcc.gnu.org/bugzilla/>
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-04/txt/msg01270.txt.bz2
Content-length: 597

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`866

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-04-17
   Target Milestone|---                         |4.7.4
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.


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

end of thread, other threads:[~2015-06-26 20:36 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-17 11:02 [Bug tree-optimization/60871] New: internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510 holger.hopp at sap dot com
2014-04-17 11:07 ` [Bug ipa/60871] [4.9/4.10 Regression] " rguenth at gcc dot gnu.org
2014-04-17 11:13 ` trippels at gcc dot gnu.org
2014-04-17 12:06 ` jakub at gcc dot gnu.org
2014-04-17 15:56 ` hubicka at gcc dot gnu.org
2014-05-01  8:19 ` hubicka at gcc dot gnu.org
2014-05-01  8:19 ` hubicka at gcc dot gnu.org
2014-06-26 13:01 ` rguenth at gcc dot gnu.org
2014-07-16 13:26 ` jakub at gcc dot gnu.org
2014-10-30 10:36 ` [Bug ipa/60871] [4.9/5 " jakub at gcc dot gnu.org
2014-12-11  9:00 ` jakub at gcc dot gnu.org
2015-01-27 17:07 ` hubicka at gcc dot gnu.org
2015-01-27 17:08 ` hubicka at gcc dot gnu.org
2015-01-27 17:11 ` hubicka at gcc dot gnu.org
2015-01-27 19:40 ` hubicka at gcc dot gnu.org
2015-01-27 19:52 ` [Bug ipa/60871] [4.9 " hubicka at gcc dot gnu.org
2015-02-08 15:54 ` boris at kolpackov dot net
2015-02-08 21:10 ` hubicka at ucw dot cz
2015-03-02 18:01 ` jussilehtola at fedoraproject dot org
2015-06-26 20:12 ` jakub at gcc dot gnu.org
2015-06-26 20:36 ` jakub 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).