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++/25364] [4.0/4.1/4.2 Regression] ICE with function pointer as template parameter



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


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