* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
@ 2010-06-09 3:16 ` rmlong at gmail dot com
2010-06-09 3:17 ` rmlong at gmail dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rmlong at gmail dot com @ 2010-06-09 3:16 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
2010-06-09 3:16 ` [Bug c++/44473] " rmlong at gmail dot com
@ 2010-06-09 3:17 ` rmlong at gmail dot com
2010-06-09 8:28 ` paolo dot carlini at oracle dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rmlong at gmail dot com @ 2010-06-09 3:17 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
2010-06-09 3:16 ` [Bug c++/44473] " rmlong at gmail dot com
2010-06-09 3:17 ` rmlong at gmail dot com
@ 2010-06-09 8:28 ` paolo dot carlini at oracle dot com
2010-06-09 10:22 ` redi at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 8:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2010-06-09 08:27 -------
Janis, this doesn't make sense to me, and for sure happens only with decimal.
Can you have a look?
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janis187 at us dot ibm dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (2 preceding siblings ...)
2010-06-09 8:28 ` paolo dot carlini at oracle dot com
@ 2010-06-09 10:22 ` redi at gcc dot gnu dot org
2010-06-09 20:14 ` joseph at codesourcery dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-06-09 10:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from redi at gcc dot gnu dot org 2010-06-09 10:22 -------
(From update of attachment 20871)
attachment's mimetype changed to text/plain
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20871|application/octet-stream |text/plain
mime type| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (3 preceding siblings ...)
2010-06-09 10:22 ` redi at gcc dot gnu dot org
@ 2010-06-09 20:14 ` joseph at codesourcery dot com
2010-06-09 21:48 ` paolo dot carlini at oracle dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: joseph at codesourcery dot com @ 2010-06-09 20:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from joseph at codesourcery dot com 2010-06-09 20:14 -------
Subject: Re: iterators already defined for std::vector when
using std::decimal
On Wed, 9 Jun 2010, paolo dot carlini at oracle dot com wrote:
> Janis, this doesn't make sense to me, and for sure happens only with decimal.
> Can you have a look?
>
>
> --
>
> paolo dot carlini at oracle dot com changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |janis187 at us dot ibm dot
> | |com
Janis is no longer at IBM....
http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01516.html
(her assignment has now come through, according to copyright.list)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (4 preceding siblings ...)
2010-06-09 20:14 ` joseph at codesourcery dot com
@ 2010-06-09 21:48 ` paolo dot carlini at oracle dot com
2010-06-09 22:02 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 21:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from paolo dot carlini at oracle dot com 2010-06-09 21:48 -------
Oops, thanks Joseph.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|janis187 at us dot ibm dot |
|com |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (5 preceding siblings ...)
2010-06-09 21:48 ` paolo dot carlini at oracle dot com
@ 2010-06-09 22:02 ` paolo dot carlini at oracle dot com
2010-06-10 21:58 ` janis at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 22:02 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-06-09 22:02:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (6 preceding siblings ...)
2010-06-09 22:02 ` paolo dot carlini at oracle dot com
@ 2010-06-10 21:58 ` janis at gcc dot gnu dot org
2010-06-10 23:23 ` paolo dot carlini at oracle dot com
2010-08-29 17:32 ` paolo dot carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-06-10 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from janis at gcc dot gnu dot org 2010-06-10 21:58 -------
The new decimal* classes are sometimes treated as classes, sometimes as
scalars. From a first look, something might be going wrong with the use of
__are_same in bits/std_iterator.h so that it needs special casing for these odd
classes. I'll continue digging slowly, but don't let that stop anyone else
from jumping in here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (7 preceding siblings ...)
2010-06-10 21:58 ` janis at gcc dot gnu dot org
@ 2010-06-10 23:23 ` paolo dot carlini at oracle dot com
2010-08-29 17:32 ` paolo dot carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-10 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from paolo dot carlini at oracle dot com 2010-06-10 23:23 -------
Thanks Janis. I think that Jason reviewed your C++ contributions regarding
decimal floating point, thus, once more, I'm adding him in CC hoping for help
on this issue.
In a nutshell, it seems that something is going wrong when templates - in this
specific case, __gnu_cxx::__normal_iterator - are instantiated for
std::decimal: we end up with multiple definitions of member functions - in this
case, the constructor from pointer and base() - in the assembly generated by
GCC.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/44473] iterators already defined for std::vector when using std::decimal
2010-06-09 3:15 [Bug c++/44473] New: iterators already defined for std::vector when using std::decimal rmlong at gmail dot com
` (8 preceding siblings ...)
2010-06-10 23:23 ` paolo dot carlini at oracle dot com
@ 2010-08-29 17:32 ` paolo dot carlini at oracle dot com
9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-08-29 17:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from paolo dot carlini at oracle dot com 2010-08-29 17:32 -------
Jason, any hint about the best way to attack this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44473
^ permalink raw reply [flat|nested] 11+ messages in thread