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

           Summary: [4.6/4.7 Regression] undefined reference to
                    std::basic_string::_S_compare(unsigned long, unsigned
                    long)
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 23883
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23883
reduced testcase

Compiler output:
$ g++ -finline-small-functions -O testcase.C
--param=hot-bb-frequency-fraction=1
/tmp/ccRTQGpy.o: In function `foo(int, int, char*)':
testcase.C:(.text+0x70): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_S_compare(unsigned long,
unsigned long)'
collect2: ld returned 1 exit status

Tested revisions:
r171979 - fail
4.6 r171597 - fail
4.5 r171597 - OK

Reply via email to