https://sourceware.org/bugzilla/show_bug.cgi?id=32041
Chuang Wang changed:
What|Removed |Added
CC||koule2333 at gmail dot com
--
You are
https://sourceware.org/bugzilla/show_bug.cgi?id=32041
Chuang Wang changed:
What|Removed |Added
Version|unspecified |2.41
--
You are receiving this mail be
https://sourceware.org/bugzilla/show_bug.cgi?id=32041
--- Comment #2 from Chuang Wang ---
the second ./caller got undefined symbol:
_ZNSt3mapIdNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIdESaISt4pairIKdS5_EEED1Ev
I am using gold(2.41) and gcc(12.3.1).
--
You are receiving this
https://sourceware.org/bugzilla/show_bug.cgi?id=32041
--- Comment #1 from Chuang Wang ---
mycase:
// caller.cpp
#include
extern int hack();
int main()
{
std::cout << hack() << std::endl;
}
// goo.cpp
int hack()
{
int s = 1;
for (int i = 1; i < ; ++i) {
s *= i + i;
}