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++/25369] [3.4/4.0/4.1/4.2 Regression] use of inline function in template class leads to undefined reference



------- Comment #8 from reichelt at gcc dot gnu dot org  2005-12-21 02:49 -------
Confirmed. Reduced testcase:

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

void bar(void (A<int>::*)()) {}

template<int> void baz()
{
    bar(&A<int>::foo);
}

int main()
{
    baz<0>();
    return 0;
}
======================================

This fails to link since gcc 3.4.4.
I.e. we have a regression on the 3.4 branch. Ouch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
      Known to fail|                            |3.4.4 3.4.5 4.0.0 4.1.0
      Known to work|3.3.5                       |3.3.5 3.3.6 3.4.0 3.4.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-21 02:49:44
               date|                            |


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


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