FS#23685 - [gcc 4.6] Linker errors when using assign() from C++ STL list

Attached to Project: Arch Linux
Opened by Patrick McCarty (pnorcks) - Monday, 11 April 2011, 00:07 GMT
Last edited by Allan McRae (Allan) - Monday, 11 April 2011, 01:52 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Package version:
* gcc 4.6.0-2

Description:
When compiling a simple C++ program (attached) that uses assign() from STL list, a series of linker errors is output. See "error.log" for the detailed error messages.

Steps to reproduce:
* With the attached "test.cpp", run `g++ -o test test.cpp'
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 11 April 2011, 01:52 GMT
Reason for closing:  Not a bug
Additional comments about closing:  pebkac
Comment by Allan McRae (Allan) - Monday, 11 April 2011, 01:44 GMT
I can not replicate on i686 or x86_64. Are you fully up to date?
Comment by Allan McRae (Allan) - Monday, 11 April 2011, 01:45 GMT
Ah... I can replicate...

Running "g++ -o test test.cpp" works. Running "gcc -o test test.cpp" gives that error.

Loading...