public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42057]  New: [4.5 Regression] ICE with invalid parameter of virtual function
@ 2009-11-15 21:31 reichelt at gcc dot gnu dot org
  2009-11-15 21:32 ` [Bug c++/42057] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-15 21:31 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE on trunk:

====================================
struct A;

struct B
{
  virtual B* foo(A);
};

struct C : virtual B
{
  virtual C* foo(A) { return 0; }
};

C c;
====================================

bug.cc: In member function 'virtual C* C::foo(A)':
bug.cc:10:14: error: '<anonymous>' has incomplete type
bug.cc:1:8: error: forward declaration of 'struct A'
bug.cc: In member function 'C* C::_ZTch0_v0_n16_N1C3fooE1A(A)':
bug.cc:13:4: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in create_tmp_var, at gimplify.c:504
Please submit a full bug report, [etc.]

When the code snippet is compiles with "-Wall" then the ICE happens in a
different place (the rest of the error message is identical):

bug.cc:13:4: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in operand_equal_p, at fold-const.c:3182


-- 
           Summary: [4.5 Regression] ICE with invalid parameter of virtual
                    function
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
@ 2009-11-15 21:32 ` reichelt at gcc dot gnu dot org
  2009-11-21  2:44 ` paolo dot carlini at oracle dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-15 21:32 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
  2009-11-15 21:32 ` [Bug c++/42057] " reichelt at gcc dot gnu dot org
@ 2009-11-21  2:44 ` paolo dot carlini at oracle dot com
  2009-11-24  8:37 ` paolo dot carlini at oracle dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-21  2:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-21 02:44:47
               date|                            |


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
  2009-11-15 21:32 ` [Bug c++/42057] " reichelt at gcc dot gnu dot org
  2009-11-21  2:44 ` paolo dot carlini at oracle dot com
@ 2009-11-24  8:37 ` paolo dot carlini at oracle dot com
  2009-11-27 11:19 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-24  8:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2009-11-24 08:37 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2009-11/msg01304.html


-- 


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-11-24  8:37 ` paolo dot carlini at oracle dot com
@ 2009-11-27 11:19 ` rguenth at gcc dot gnu dot org
  2009-11-30 10:27 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-27 11:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-11-27 11:19 ` rguenth at gcc dot gnu dot org
@ 2009-11-30 10:27 ` paolo dot carlini at oracle dot com
  2009-12-01  7:26 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-30 10:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2009-11-30 10:27 -------
Today (r154772), I can't reproduce the issue anymore. Volker, can you double
check?


-- 


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-11-30 10:27 ` paolo dot carlini at oracle dot com
@ 2009-12-01  7:26 ` reichelt at gcc dot gnu dot org
  2009-12-01  9:20 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-12-01  7:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2009-12-01 07:26 -------
Indeed, the ICE disappeared.
Would you mind adding the testcase anyway?
Thanks!


-- 


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-12-01  7:26 ` reichelt at gcc dot gnu dot org
@ 2009-12-01  9:20 ` paolo at gcc dot gnu dot org
  2009-12-01  9:22 ` paolo dot carlini at oracle dot com
  2009-12-11 23:41 ` hjl at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-12-01  9:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2009-12-01 09:20 -------
Subject: Bug 42057

Author: paolo
Date: Tue Dec  1 09:19:47 2009
New Revision: 154865

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154865
Log:
2009-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/42057
        * g++.dg/parse/crash54.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash54.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-12-01  9:20 ` paolo at gcc dot gnu dot org
@ 2009-12-01  9:22 ` paolo dot carlini at oracle dot com
  2009-12-11 23:41 ` hjl at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-01  9:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2009-12-01 09:22 -------
Done, thank you.


-- 

paolo dot carlini at oracle dot com changed:

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


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


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

* [Bug c++/42057] [4.5 Regression] ICE with invalid parameter of virtual function
  2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-12-01  9:22 ` paolo dot carlini at oracle dot com
@ 2009-12-11 23:41 ` hjl at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-12-11 23:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl at gcc dot gnu dot org  2009-12-11 23:38 -------
Subject: Bug 42057

Author: hjl
Date: Fri Dec 11 23:36:24 2009
New Revision: 155184

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155184
Log:
Backport testcases from trunk.

2009-12-11  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-12-11  Dodji Seketeli  <dodji@redhat.com>

        PR c++/42225
        * g++.dg/template/typedef24.C: New test.
        * g++.dg/template/typedef25.C: New test.

        2009-12-11  Dodji Seketeli  <dodji@redhat.com>

        PR c++/42251
        * g++.dg/template/const3.C: New test.

        2009-12-10  Jakub Jelinek  <jakub@redhat.com>

        PR c++/42317
        * g++.dg/opt/dtor2.C: New test.
        * g++.dg/opt/dtor2.h: New file.
        * g++.dg/opt/dtor2-aux.cc: New file.

        2009-12-10  Jan Hubicka  <jh@suse.cz>

        PR middle-end/42110
        * g++.dg/torture/pr42110.C: new file.

        2009-12-07  Jakub Jelinek  <jakub@redhat.com>

        PR debug/42244
        * gcc.dg/debug/pr42244.c: New test.

        2009-12-04  David Daney  <ddaney@caviumnetworks.com>

        PR rtl-optimization/42164
        * gcc.c-torture/compile/pr42164.c: New test.

        2009-12-03  Jason Merrill  <jason@redhat.com>

        PR c++/41611
        * g++.dg/abi/guard2.C: New.

        2009-12-03  Dodji Seketeli  <dodji@redhat.com>

        PR c++/42217
        * g++.dg/other/bitfield4.C: New test.

        2009-12-03  Jakub Jelinek  <jakub@redhat.com>

        PR c++/42256
        * g++.dg/inherit/thunk11.C: New test.
        * g++.dg/inherit/thunk11.h: New file.
        * g++.dg/inherit/thunk11-aux.cc: New file.

        2009-12-01  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/42237
        * gcc.c-torture/compile/pr42237.c: New test.

        2009-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/42057
        * g++.dg/parse/crash54.C: New.

        2009-11-30  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/42196
        * gcc.c-torture/compile/pr42196-1.c: New test.
        * gcc.c-torture/compile/pr42196-2.c: New test.
        * gcc.c-torture/compile/pr42196-3.c: New test.

        2009-11-30  Dodji Seketeli  <dodji@redhat.com>

        PR c++/42069
        * g++.dg/template/typedef23.C: New test.

        2009-11-29  H.J. Lu  <hongjiu.lu@intel.com>

        PR tree-optimization/41961
        * g++.dg/tree-ssa/pr41961.C: New.

        2009-11-29  Ira Rosen  <irar@il.ibm.com>

        PR tree-optimization/42193
        * gcc.dg/vect/pr42193.c: New test.

        2009-11-28  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/42183
        * g++.dg/torture/pr42183.C: New testcase.

        2009-11-27  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/42006
        * gcc.c-torture/execute/pr42006.c: New test.

        2009-11-27  Michael Matz  <matz@suse.de>

        PR rtl-optimization/42084
        * gcc.dg/pr42084.c: New test.

        2009-11-27  Michael Matz  <matz@suse.de>

        PR c++/41906
        * g++.dg/tree-ssa/pr41906.C: New testcase.

        2009-11-26  Michael Matz  <matz@suse.de>

        PR tree-optimization/41905
        * g++.dg/tree-ssa/pr41905.C: New testcase.

        2009-11-24  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/42142
        * gcc.c-torture/execute/pr42142.c: New testcase.

        2009-11-24  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/42154
        * gcc.c-torture/execute/pr42154.c: New test.

        2009-11-21  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/42025
        * gcc.c-torture/compile/pr42025-1.c: New test.
        * gcc.c-torture/compile/pr42025-2.c: New test.

        2009-11-21  Jakub Jelinek  <jakub@redhat.com>

        PR tree-optimization/42078
        * gcc.dg/pr42078.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/abi/guard2.C
      - copied unchanged from r155170, trunk/gcc/testsuite/g++.dg/abi/guard2.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/inherit/thunk11-aux.cc
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/inherit/thunk11-aux.cc
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/inherit/thunk11.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/inherit/thunk11.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/inherit/thunk11.h
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/inherit/thunk11.h
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/dtor2-aux.cc
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/opt/dtor2-aux.cc
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/dtor2.C
      - copied unchanged from r155170, trunk/gcc/testsuite/g++.dg/opt/dtor2.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/dtor2.h
      - copied unchanged from r155170, trunk/gcc/testsuite/g++.dg/opt/dtor2.h
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/bitfield4.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/other/bitfield4.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/crash54.C
      - copied unchanged from r155172,
trunk/gcc/testsuite/g++.dg/parse/crash54.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/const3.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/template/const3.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/typedef23.C
      - copied unchanged from r155181,
trunk/gcc/testsuite/g++.dg/template/typedef23.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/typedef24.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/template/typedef24.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/typedef25.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/template/typedef25.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr42110.C
      - copied unchanged from r155170,
trunk/gcc/testsuite/g++.dg/torture/pr42110.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr42183.C
      - copied unchanged from r155181,
trunk/gcc/testsuite/g++.dg/torture/pr42183.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/tree-ssa/pr41905.C
      - copied unchanged from r155182,
trunk/gcc/testsuite/g++.dg/tree-ssa/pr41905.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/tree-ssa/pr41906.C
      - copied unchanged from r155182,
trunk/gcc/testsuite/g++.dg/tree-ssa/pr41906.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/tree-ssa/pr41961.C
      - copied unchanged from r155181,
trunk/gcc/testsuite/g++.dg/tree-ssa/pr41961.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42025-1.c
      - copied unchanged from r155182,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42025-1.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42025-2.c
      - copied unchanged from r155182,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42025-2.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42164.c
      - copied unchanged from r155170,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42164.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42196-1.c
      - copied unchanged from r155181,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-1.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42196-2.c
      - copied unchanged from r155181,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-2.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42196-3.c
      - copied unchanged from r155181,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-3.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42237.c
      - copied unchanged from r155171,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42237.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr42006.c
      - copied unchanged from r155181,
trunk/gcc/testsuite/gcc.c-torture/execute/pr42006.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr42142.c
      - copied unchanged from r155182,
trunk/gcc/testsuite/gcc.c-torture/execute/pr42142.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr42154.c
      - copied unchanged from r155182,
trunk/gcc/testsuite/gcc.c-torture/execute/pr42154.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/debug/pr42244.c
      - copied unchanged from r155170,
trunk/gcc/testsuite/gcc.dg/debug/pr42244.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42078.c
      - copied unchanged from r155182, trunk/gcc/testsuite/gcc.dg/pr42078.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42084.c
      - copied unchanged from r155182, trunk/gcc/testsuite/gcc.dg/pr42084.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/vect/pr42193.c
      - copied unchanged from r155181,
trunk/gcc/testsuite/gcc.dg/vect/pr42193.c
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2009-12-11 23:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15 21:31 [Bug c++/42057] New: [4.5 Regression] ICE with invalid parameter of virtual function reichelt at gcc dot gnu dot org
2009-11-15 21:32 ` [Bug c++/42057] " reichelt at gcc dot gnu dot org
2009-11-21  2:44 ` paolo dot carlini at oracle dot com
2009-11-24  8:37 ` paolo dot carlini at oracle dot com
2009-11-27 11:19 ` rguenth at gcc dot gnu dot org
2009-11-30 10:27 ` paolo dot carlini at oracle dot com
2009-12-01  7:26 ` reichelt at gcc dot gnu dot org
2009-12-01  9:20 ` paolo at gcc dot gnu dot org
2009-12-01  9:22 ` paolo dot carlini at oracle dot com
2009-12-11 23:41 ` hjl at gcc dot gnu dot 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).