This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12773] [3.3 Regression] ICE on overladed functions passed as function pointers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]