[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #7 from Jonathan Wakely  ---
Right. Debug mode identifies a problem:

/home/jwakely/gcc/7/include/c++/7.0.0/debug/safe_iterator.h:297:
Error: attempt to increment a singular iterator.

Objects involved in the operation:
iterator "this" @ 0x0x7ffca3d04820 {
  type = __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator >, std::__debug::vector > (mutable iterator);
  state = singular;
  references sequence with type 'std::__debug::vector' @ 0x0x7ffca3d047a0
}
Aborted (core dumped)

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-27 Thread FBergemann at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

Frank Bergemann  changed:

   What|Removed |Added

 CC||FBergemann at web dot de

--- Comment #6 from Frank Bergemann  ---
Sorry, my fault!
You can set this RESOLVED INVALID.
It's about iterator invalidation because of capacity change.

best regards,
Frank

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-23 Thread frank67x at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

--- Comment #5 from Frank Bergemann  ---
I also tested on HP-UX with gcc-4.7.2.

HP-UX ### B.11.31 U ia64 4035416745 unlimited-user license

And it's also ok on HP-UX:

hpux03 506> ./test

using push_back():
==
1, 2, 3, 4, 5, 
1, 2, 3, 4, 5, 2, 4, 6, 8, 10, 

using initializer list:
===
1, 2, 3, 4, 5, 
1, 2, 3, 4, 5, 2, 4, 6, 8, 10,

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-23 Thread frank67x at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

--- Comment #4 from Frank Bergemann  ---
The problem is on Linux

Linux ### 2.6.32-358.55.1.el6.x86_64 #1 SMP Tue Dec 16 06:57:07 EST 2014 x86_64
x86_64 x86_64 GNU/Linux

\Frank

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-23 Thread frank67x at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

--- Comment #3 from Frank Bergemann  ---
But on solaris i only had gcc-4.7.2 yet

\Frank

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-23 Thread frank67x at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

--- Comment #2 from Frank Bergemann  ---
it works on Solaris 5.10

SunOS ### 5.10 Generic_142900-05 sun4u sparc SUNW,Sun-Fire-V890

\Frank

[Bug c++/71639] [5.2.0] c++11 list initializer and std::transform - error?

2016-06-23 Thread frank67x at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71639

--- Comment #1 from Frank Bergemann  ---
Created attachment 38754
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38754=edit
test program main.cpp