This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25369] [3.4/4.0/4.1/4.2 Regression] use of inline function in template class leads to undefined reference
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2005 02:49:44 -0000
- Subject: [Bug c++/25369] [3.4/4.0/4.1/4.2 Regression] use of inline function in template class leads to undefined reference
- References: <bug-25369-11868@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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