[Bug c++/44473] New: iterators already defined for std::vector when using std::decimal

2010-06-08 Thread rmlong at gmail dot com
If checking empty then attempting to push back the following errors are
reported:
main.s: Assembler messages:
main.s:2236: Error: symbol
`_ZNK9__gnu_cxx17__normal_iteratorIPDfSt6vectorIDfSaIDfEEE4baseEv' is already
defined
main.s:2542: Error: symbol
`_ZN9__gnu_cxx17__normal_iteratorIPDfSt6vectorIDfSaIDfEEEC2ERKS1_' is already
defined

Preprocessed file: http://dl.dropbox.com/u/2280/main.ii
Example code:
#include 
#include 

int main()
{
std::vector vec;

if (vec.empty())
{
vec.push_back(std::decimal::decimal32(0));
}

return 0;
}


-- 
   Summary: iterators already defined for std::vector when using
std::decimal
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rmlong at gmail dot com
 GCC build triplet: --with-gmp=/devsandbox/cxp/ext/compiler/gmp/ --with-
mpc=/devsand
  GCC host triplet: RHEL5.5
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug c++/44473] iterators already defined for std::vector when using std::decimal

2010-06-08 Thread rmlong at gmail dot com


--- Comment #1 from rmlong at gmail dot com  2010-06-09 03:15 ---
Created an attachment (id=20871)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20871&action=view)
Preprocessed file


-- 


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



[Bug c++/44473] iterators already defined for std::vector when using std::decimal

2010-06-08 Thread rmlong at gmail dot com


--- Comment #2 from rmlong at gmail dot com  2010-06-09 03:17 ---
Created an attachment (id=20872)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20872&action=view)
Example code


-- 


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