This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2003 10:45:46 -0000
- Subject: [Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers
- References: <20031025205532.12773.matze@braunis.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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