This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25369] 4.0 regression: use of inline function in template class leads to undefined reference
- From: "peter dot soetens at fmtc dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2005 12:06:49 -0000
- Subject: [Bug c++/25369] 4.0 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 #3 from peter dot soetens at fmtc dot be 2005-12-13 12:06 -------
Created an attachment (id=10469)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10469&action=view)
Failure testcase
$ g++ test_undefined_symb4_fail.ii -o test_undefined_symb4_fail
/tmp/ccSLyh1a.o: In function `Event<int>::emit()':
test_undefined_symb4.0.cpp:(.gnu.linkonce.t._ZN5EventIiE4emitEv[Event<int>::emit()]+0x21):
undefined reference to `boost::shared_ptr<E>::get() const'
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25369