[Bug c++/25364] [4.0/4.1/4.2 Regression] ICE with function pointer as template parameter

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 22 08:38:00 GMT 2005



------- Comment #10 from reichelt at gcc dot gnu dot org  2005-12-22 08:38 -------
Shorter testcase:

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

template<void (*fp)()> struct B
{
    B() { fp(); }
};

B<A::foo> b;
=====================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2 Regression]    |[4.0/4.1/4.2 Regression] ICE
                   |Internal compiler error in  |with function pointer as
                   |templated C++               |template parameter


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



More information about the Gcc-bugs mailing list