[fixed in 4.2] linker error with -fvisibility-inlines-hidden
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.1 (Ubuntu) |
Fix Released
|
Undecided
|
Matthias Klose |
Bug Description
Stock feisty i386 install.
Compile the following small test program:
klimek@
#include <string>
int main()
{
std::string x;
return 0;
}
klimek@
/tmp/ccxS2ZNZ.o: In function `main':
test.cc:
test.cc:
/usr/bin/ld: test: hidden symbol `std::basic_
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
klimek@
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
fixed in g++-4.2