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++/24050] [3.4 Regression] Fails a template instantiation.



------- Comment #5 from reichelt at gcc dot gnu dot org  2005-11-24 16:58 -------
Testcase with fewer nesting levels of templates:

========================================
template<int> struct A
{
    static void foo() {}
};

void bar(void (*)()) {}

template<int> struct B
{
    B() { bar(A<0>::foo); }
};

B<0> b;

int main()
{
    return 0;
}
========================================

Compiles with optimization turned on.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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