[Bug c++/36178] rand() combined with vectors negates setw()

2008-05-07 Thread pmaconi at gmail dot com
--- Comment #5 from pmaconi at gmail dot com 2008-05-08 05:58 --- Sorry. When I ran that code from visual studio, rand() always returned no more than 5 digits. I didn't realize that RAND_MAX was different between the compilers. -- pmaconi at gmail dot com changed:

[Bug c++/36178] rand() combined with vectors negates setw()

2008-05-07 Thread pmaconi at gmail dot com
--- Comment #3 from pmaconi at gmail dot com 2008-05-08 03:30 --- Created an attachment (id=15617) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15617&action=view) Test .cpp file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36178

[Bug c++/36178] rand() combined with vectors negates setw()

2008-05-07 Thread pmaconi at gmail dot com
--- Comment #2 from pmaconi at gmail dot com 2008-05-08 03:29 --- Created an attachment (id=15616) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15616&action=view) Output file from --save-temps (.s) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36178

[Bug c++/36178] rand() combined with vectors negates setw()

2008-05-07 Thread pmaconi at gmail dot com
--- Comment #1 from pmaconi at gmail dot com 2008-05-08 03:29 --- Created an attachment (id=15615) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15615&action=view) Output file from --save-temps -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36178

[Bug c++/36178] New: rand() combined with vectors negates setw()

2008-05-07 Thread pmaconi at gmail dot com
y: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pmaconi at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36178