public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
@ 2008-09-25  6:59 ` reichelt at gcc dot gnu dot org
  2008-09-28 19:56 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  6:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/37646]  New: [4.2/4.3/4.4 regression] ICE with function vs. member function
@ 2008-09-25  6:59 reichelt at gcc dot gnu dot org
  2008-09-25  6:59 ` [Bug c++/37646] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  6:59 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.2.0:

===================================
struct A
{
  void foo();

  void bar(int i)
  {
    void (*p)() = i ? foo : foo;
  }
};
===================================

bug.cc: In member function 'void A::bar(int)':
bug.cc:7: internal compiler error: in instantiate_type, at cp/class.c:6280
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with function vs. member
                    function
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=37646


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

* [Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
  2008-09-25  6:59 ` [Bug c++/37646] " reichelt at gcc dot gnu dot org
@ 2008-09-28 19:56 ` pinskia at gcc dot gnu dot org
  2008-10-10  9:14 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-28 19:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-28 19:55 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-28 19:55:19
               date|                            |


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


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

* [Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
  2008-09-25  6:59 ` [Bug c++/37646] " reichelt at gcc dot gnu dot org
  2008-09-28 19:56 ` pinskia at gcc dot gnu dot org
@ 2008-10-10  9:14 ` rguenth at gcc dot gnu dot org
  2009-01-14 23:24 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-10  9:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.2.0
      Known to work|                            |4.1.2
           Priority|P3                          |P2


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


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

* [Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-10-10  9:14 ` rguenth at gcc dot gnu dot org
@ 2009-01-14 23:24 ` jason at gcc dot gnu dot org
  2009-01-15 18:15 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-14 23:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-09-28 19:55:19         |2009-01-14 23:24:30
               date|                            |


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


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

* [Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-01-14 23:24 ` jason at gcc dot gnu dot org
@ 2009-01-15 18:15 ` jason at gcc dot gnu dot org
  2009-01-15 22:34 ` [Bug c++/37646] [4.2/4.3 " jason at gcc dot gnu dot org
  2009-01-15 22:57 ` [Bug c++/37646] [4.2 " jason at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jason at gcc dot gnu dot org  2009-01-15 18:14 -------
Subject: Bug 37646

Author: jason
Date: Thu Jan 15 18:14:32 2009
New Revision: 143404

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143404
Log:
        PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

Added:
    trunk/gcc/testsuite/g++.dg/conversion/memfn1.C
    trunk/gcc/testsuite/g++.dg/conversion/memfn2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37646] [4.2/4.3 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-01-15 18:15 ` jason at gcc dot gnu dot org
@ 2009-01-15 22:34 ` jason at gcc dot gnu dot org
  2009-01-15 22:57 ` [Bug c++/37646] [4.2 " jason at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 22:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2009-01-15 22:34 -------
Subject: Bug 37646

Author: jason
Date: Thu Jan 15 22:34:20 2009
New Revision: 143413

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143413
Log:
        PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

        PR c++/31488
        * tree.c (pod_type_p): Return 1 for structs created by the back end.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn1.C
      - copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn1.C
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/conversion/memfn2.C
      - copied unchanged from r143404,
trunk/gcc/testsuite/g++.dg/conversion/memfn2.C
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/other/vararg-3.C
      - copied unchanged from r143308,
trunk/gcc/testsuite/g++.dg/other/vararg-3.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/cp-tree.h
    branches/gcc-4_3-branch/gcc/cp/tree.c
    branches/gcc-4_3-branch/gcc/cp/typeck.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37646] [4.2 regression] ICE with function vs. member function
  2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-01-15 22:34 ` [Bug c++/37646] [4.2/4.3 " jason at gcc dot gnu dot org
@ 2009-01-15 22:57 ` jason at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-15 22:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2009-01-15 22:57 -------
Fixed for 4.3 and 4.4, not fixing for 4.2.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|[4.2/4.3 regression] ICE    |[4.2 regression] ICE with
                   |with function vs. member    |function vs. member function
                   |function                    |


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


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

end of thread, other threads:[~2009-01-15 22:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25  6:59 [Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function reichelt at gcc dot gnu dot org
2008-09-25  6:59 ` [Bug c++/37646] " reichelt at gcc dot gnu dot org
2008-09-28 19:56 ` pinskia at gcc dot gnu dot org
2008-10-10  9:14 ` rguenth at gcc dot gnu dot org
2009-01-14 23:24 ` jason at gcc dot gnu dot org
2009-01-15 18:15 ` jason at gcc dot gnu dot org
2009-01-15 22:34 ` [Bug c++/37646] [4.2/4.3 " jason at gcc dot gnu dot org
2009-01-15 22:57 ` [Bug c++/37646] [4.2 " jason 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).