public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class
@ 2003-10-25 20:57 matze at braunis dot de
  2003-10-25 21:00 ` [Bug c++/12773] " matze at braunis dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: matze at braunis dot de @ 2003-10-25 20:57 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE on overladed functions passed as function pointers
                    in templated class
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: matze at braunis dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

The attached code triggers an internal compiler error.

My system:
gentoo linux 1.4 on x86
g++ (GCC) 3.3.2  (Gentoo Linux 3.3.2, propolice)


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

* [Bug c++/12773] ICE on overladed functions passed as function pointers in templated class
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
@ 2003-10-25 21:00 ` matze at braunis dot de
  2003-10-25 21:20 ` matze at braunis dot de
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: matze at braunis dot de @ 2003-10-25 21:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From matze at braunis dot de  2003-10-25 20:57 -------
Created an attachment (id=4996)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4996&action=view)
sample code that triggers the bug


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

* [Bug c++/12773] ICE on overladed functions passed as function pointers in templated class
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
  2003-10-25 21:00 ` [Bug c++/12773] " matze at braunis dot de
@ 2003-10-25 21:20 ` matze at braunis dot de
  2003-10-25 21:21 ` matze at braunis dot de
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: matze at braunis dot de @ 2003-10-25 21:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


matze at braunis dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4996 is|0                           |1
           obsolete|                            |


------- Additional Comments From matze at braunis dot de  2003-10-25 21:00 -------
Created an attachment (id=4997)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4997&action=view)
shorter versio of the problematic code


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

* [Bug c++/12773] ICE on overladed functions passed as function pointers in templated class
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
  2003-10-25 21:00 ` [Bug c++/12773] " matze at braunis dot de
  2003-10-25 21:20 ` matze at braunis dot de
@ 2003-10-25 21:21 ` matze at braunis dot de
  2003-10-26  6:39 ` [Bug c++/12773] [3.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: matze at braunis dot de @ 2003-10-25 21:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


matze at braunis dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4997 is|0                           |1
           obsolete|                            |


------- Additional Comments From matze at braunis dot de  2003-10-25 21:20 -------
Created an attachment (id=4998)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4998&action=view)
even simpler code


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers in templated class
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (2 preceding siblings ...)
  2003-10-25 21:21 ` matze at braunis dot de
@ 2003-10-26  6:39 ` pinskia at gcc dot gnu dot org
  2003-10-26 22:29 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-26  6:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-26 06:25:29
               date|                            |
            Summary|ICE on overladed functions  |[3.3 Regression] ICE on
                   |passed as function pointers |overladed functions passed
                   |in templated class          |as function pointers in
                   |                            |templated class
   Target Milestone|---                         |3.3.3


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-26 06:25 -------
It is a regression from 3.2.3. It is fixed on the mainline already.


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers in templated class
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (3 preceding siblings ...)
  2003-10-26  6:39 ` [Bug c++/12773] [3.3 Regression] " pinskia at gcc dot gnu dot org
@ 2003-10-26 22:29 ` pinskia at gcc dot gnu dot org
  2003-12-04  0:20 ` [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-26 22:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-26 22:05 -------
This causes a stack overflow.


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (4 preceding siblings ...)
  2003-10-26 22:29 ` pinskia at gcc dot gnu dot org
@ 2003-12-04  0:20 ` reichelt at gcc dot gnu dot org
  2003-12-04 10:45 ` mark at codesourcery dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-04  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-04 00:19 -------
Here's a shorter testcase without templates:

============================================
struct A {};

struct B : A
{
    static void foo(int);
    static void foo(short);
};

void bar(void (*)(short) = B::foo);

void quus() { bar(); }
============================================


On mainline the bug was fixed by Mark's patch

http://gcc.gnu.org/ml/gcc-cvs/2003-01/msg00713.html

Mark, is there a chance for a backport?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
            Summary|[3.3 Regression] ICE on     |[3.3 Regression] ICE on
                   |overladed functions passed  |overladed functions passed
                   |as function pointers in     |as function pointers
                   |templated class             |


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


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (5 preceding siblings ...)
  2003-12-04  0:20 ` [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers reichelt at gcc dot gnu dot org
@ 2003-12-04 10:45 ` mark at codesourcery dot com
  2003-12-04 11:30 ` gdr at integrable-solutions dot net
  2003-12-04 15:11 ` bangerth at dealii dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mark at codesourcery dot com @ 2003-12-04 10:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mark at codesourcery dot com  2003-12-04 10:45 -------
Subject: Re:  [3.3 Regression] ICE on overladed functions
	passed as function pointers

On Wed, 2003-12-03 at 16:20, reichelt at gcc dot gnu dot org wrote:
> ------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-04 00:19 -------
> Here's a shorter testcase without templates:
> 
> ============================================
> struct A {};
> 
> struct B : A
> {
>     static void foo(int);
>     static void foo(short);
> };
> 
> void bar(void (*)(short) = B::foo);
> 
> void quus() { bar(); }
> ============================================
> 
> 
> On mainline the bug was fixed by Mark's patch
> 
> http://gcc.gnu.org/ml/gcc-cvs/2003-01/msg00713.html
> 
> Mark, is there a chance for a backport?

I wouldn't recommend it, and I don't intend to do a backport, but it's
Gaby's call.



-- 


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


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (6 preceding siblings ...)
  2003-12-04 10:45 ` mark at codesourcery dot com
@ 2003-12-04 11:30 ` gdr at integrable-solutions dot net
  2003-12-04 15:11 ` bangerth at dealii dot org
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-12-04 11:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2003-12-04 11:30 -------
Subject: Re:  [3.3 Regression] ICE on overladed functions passed as function pointers

"mark at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org> writes:

[...]

| > On mainline the bug was fixed by Mark's patch
| > 
| > http://gcc.gnu.org/ml/gcc-cvs/2003-01/msg00713.html
| > 
| > Mark, is there a chance for a backport?
| 
| I wouldn't recommend it, and I don't intend to do a backport, but it's
| Gaby's call.

If you don't recommand it, I would not play the game :-).
Thanks.

-- Gaby


-- 


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


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

* [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
  2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
                   ` (7 preceding siblings ...)
  2003-12-04 11:30 ` gdr at integrable-solutions dot net
@ 2003-12-04 15:11 ` bangerth at dealii dot org
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-12-04 15:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2003-12-04 15:11 -------
If it's not going to be backported to 3.3, and is fixed in mainline, 
then let's close the PR. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.3.3                       |3.4


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


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

end of thread, other threads:[~2003-12-04 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-25 20:57 [Bug c++/12773] New: ICE on overladed functions passed as function pointers in templated class matze at braunis dot de
2003-10-25 21:00 ` [Bug c++/12773] " matze at braunis dot de
2003-10-25 21:20 ` matze at braunis dot de
2003-10-25 21:21 ` matze at braunis dot de
2003-10-26  6:39 ` [Bug c++/12773] [3.3 Regression] " pinskia at gcc dot gnu dot org
2003-10-26 22:29 ` pinskia at gcc dot gnu dot org
2003-12-04  0:20 ` [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers reichelt at gcc dot gnu dot org
2003-12-04 10:45 ` mark at codesourcery dot com
2003-12-04 11:30 ` gdr at integrable-solutions dot net
2003-12-04 15:11 ` bangerth at dealii 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).