public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function
@ 2011-12-06  0:34 reichelt at gcc dot gnu.org
  2011-12-06  0:34 ` [Bug c++/51429] " reichelt at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-06  0:34 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51429
           Summary: [4.7 Regression] ICE with invalid use of overloaded
                    member function
    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
{
  void foo();
  void foo(int);

  A() { foo = 0; }
};
===================

bug.cc: In constructor 'A::A()':
bug.cc:6:15: internal compiler error: tree check: expected tree that contains
'decl common' structure, have 'baselink' in cxx_incomplete_type_diagnostic, at
cp/typeck2.c:431
Please submit a full bug report, [etc.]


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

* [Bug c++/51429] [4.7 Regression] ICE with invalid use of overloaded member function
  2011-12-06  0:34 [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function reichelt at gcc dot gnu.org
@ 2011-12-06  0:34 ` reichelt at gcc dot gnu.org
  2011-12-07 14:49 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-06  0:34 UTC (permalink / raw)
  To: gcc-bugs

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

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] 5+ messages in thread

* [Bug c++/51429] [4.7 Regression] ICE with invalid use of overloaded member function
  2011-12-06  0:34 [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function reichelt at gcc dot gnu.org
  2011-12-06  0:34 ` [Bug c++/51429] " reichelt at gcc dot gnu.org
@ 2011-12-07 14:49 ` jakub at gcc dot gnu.org
  2011-12-07 20:47 ` jakub at gcc dot gnu.org
  2011-12-07 20:49 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-07 14:49 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-12-07
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 14:49:15 UTC ---
Created attachment 26016
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26016
gcc47-pr51429.patch

Untested fix.


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

* [Bug c++/51429] [4.7 Regression] ICE with invalid use of overloaded member function
  2011-12-06  0:34 [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function reichelt at gcc dot gnu.org
  2011-12-06  0:34 ` [Bug c++/51429] " reichelt at gcc dot gnu.org
  2011-12-07 14:49 ` jakub at gcc dot gnu.org
@ 2011-12-07 20:47 ` jakub at gcc dot gnu.org
  2011-12-07 20:49 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-07 20:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 20:46:41 UTC ---
Author: jakub
Date: Wed Dec  7 20:46:38 2011
New Revision: 182089

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182089
Log:
    PR c++/51429
    * typeck2.c (cxx_incomplete_type_diagnostic): Don't
    ICE if TREE_OPERAND (value, 1) is overloaded.

    * g++.dg/parse/error45.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/error45.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51429] [4.7 Regression] ICE with invalid use of overloaded member function
  2011-12-06  0:34 [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-07 20:47 ` jakub at gcc dot gnu.org
@ 2011-12-07 20:49 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-07 20:49 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 20:48:44 UTC ---
Fixed.


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

end of thread, other threads:[~2011-12-07 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06  0:34 [Bug c++/51429] New: [4.7 Regression] ICE with invalid use of overloaded member function reichelt at gcc dot gnu.org
2011-12-06  0:34 ` [Bug c++/51429] " reichelt at gcc dot gnu.org
2011-12-07 14:49 ` jakub at gcc dot gnu.org
2011-12-07 20:47 ` jakub at gcc dot gnu.org
2011-12-07 20:49 ` 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).