public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51326] New: [4.7 Regression] ICE with invalid override
@ 2011-11-27 21:56 reichelt at gcc dot gnu.org
  2011-11-27 21:57 ` [Bug c++/51326] " reichelt at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-27 21:56 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51326
           Summary: [4.7 Regression] ICE with invalid override
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following invalid code snippet triggers an ICE on trunk:

========================
struct A
{
  virtual int& foo();
};

struct B : A
{
  B& foo();
};
========================

bug.cc:6:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


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

* [Bug c++/51326] [4.7 Regression] ICE with invalid override
  2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
@ 2011-11-27 21:57 ` reichelt at gcc dot gnu.org
  2011-11-30 23:35 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-27 21:57 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
   Target Milestone|---                         |4.7.0


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

* [Bug c++/51326] [4.7 Regression] ICE with invalid override
  2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
  2011-11-27 21:57 ` [Bug c++/51326] " reichelt at gcc dot gnu.org
@ 2011-11-30 23:35 ` pinskia at gcc dot gnu.org
  2011-12-01 10:08 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-30 23:35 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-11-30
     Ever Confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-30 23:27:04 UTC ---
#0  build_user_type_conversion_1 (totype=0x7ffff7567348, expr=0x0, flags=9) at
/home/apinski/src/gcc-fsf/local//gcc/gcc/cp/call.c:3376
#1  0x00000000004f25cf in reference_binding (rto=0x7ffff7567348,
rfrom=0x7ffff7567b28, expr=0x0, c_cast_p=false, flags=9)
    at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/call.c:1580
#2  0x00000000004f2b15 in implicit_conversion (to=0x7ffff7567348,
from=0x7ffff7567b28, expr=0x0, c_cast_p=false, flags=9)
    at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/call.c:1670
#3  0x00000000004f56a6 in can_convert_arg (to=0x7ffff7567348,
from=0x7ffff7567b28, arg=0x0, flags=11)
    at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/call.c:8359
#4  0x000000000064ad36 in check_final_overrider (type=Unhandled dwarf
expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/search.c:1881
#5  look_for_overrides_r (type=Unhandled dwarf expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/search.c:2064
#6  look_for_overrides (type=Unhandled dwarf expression opcode 0xf3
) at /home/apinski/src/gcc-fsf/local//gcc/gcc/cp/search.c:1995

Confirmed.


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

* [Bug c++/51326] [4.7 Regression] ICE with invalid override
  2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
  2011-11-27 21:57 ` [Bug c++/51326] " reichelt at gcc dot gnu.org
  2011-11-30 23:35 ` pinskia at gcc dot gnu.org
@ 2011-12-01 10:08 ` paolo.carlini at oracle dot com
  2011-12-01 22:14 ` paolo at gcc dot gnu.org
  2011-12-01 22:16 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-01 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-01 10:07:48 UTC ---
On it.


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

* [Bug c++/51326] [4.7 Regression] ICE with invalid override
  2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-01 10:08 ` paolo.carlini at oracle dot com
@ 2011-12-01 22:14 ` paolo at gcc dot gnu.org
  2011-12-01 22:16 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-12-01 22:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-01 22:13:25 UTC ---
Author: paolo
Date: Thu Dec  1 22:13:19 2011
New Revision: 181895

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

    PR c++/51326
    * call.c (build_user_type_conversion_1): Early return NULL if
    expr is NULL_TREE.

/testsuite
2011-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51326
    * g++.dg/inherit/crash3.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/inherit/crash3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51326] [4.7 Regression] ICE with invalid override
  2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-12-01 22:14 ` paolo at gcc dot gnu.org
@ 2011-12-01 22:16 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-01 22:16 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-01 22:15:32 UTC ---
Fixed.


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

end of thread, other threads:[~2011-12-01 22:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-27 21:56 [Bug c++/51326] New: [4.7 Regression] ICE with invalid override reichelt at gcc dot gnu.org
2011-11-27 21:57 ` [Bug c++/51326] " reichelt at gcc dot gnu.org
2011-11-30 23:35 ` pinskia at gcc dot gnu.org
2011-12-01 10:08 ` paolo.carlini at oracle dot com
2011-12-01 22:14 ` paolo at gcc dot gnu.org
2011-12-01 22:16 ` paolo.carlini at oracle dot com

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).