[Bug libstdc++/29134] Has there been a serious attempt to define the max_size() member functions?

2006-09-20 Thread chris at bubblescope dot net
--- Comment #3 from chris at bubblescope dot net 2006-09-20 09:50 --- Actually, I think deque could do with a better max_size. Some tests: vectorint v; v.resize(v.max_size()); Throws bad_alloc. dequeint v; v.resize(v.max_size()); Bus errors. This is on i686-apple-darwin8, 4.0.1

[Bug libstdc++/29134] Has there been a serious attempt to define the max_size() member functions?

2006-09-20 Thread chris at bubblescope dot net
--- Comment #5 from chris at bubblescope dot net 2006-09-20 10:15 --- The reason I bought this up here, is because I thought (and I could be wrong, sorry) that the overflow was being caused by the fact that we allow the container size to get too big, and if we pull max_size() down

[Bug libstdc++/29134] Has there been a serious attempt to define the max_size() member functions?

2006-09-20 Thread chris at bubblescope dot net
--- Comment #8 from chris at bubblescope dot net 2006-09-20 11:10 --- I agree also we can't do any better. On 64 bit systems it will be even harder to give anything sensible. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29134

[Bug c++/29593] New: Missing warning.

2006-10-25 Thread chris at bubblescope dot net
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29593

[Bug libstdc++/29696] std::string::reverse_iterator doesn't work at all on Tru64 UNIX

2006-11-03 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-11-03 15:00 --- What exactly is the problem? It doesn't compile? It doesn't produce the right output? It crashes? -- chris at bubblescope dot net changed: What|Removed |Added

[Bug middle-end/20408] New: Unnessasary code generated for empty structs

2005-03-10 Thread chris at bubblescope dot net
: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20408

[Bug c++/20408] Unnecessary code generated for empty structs

2005-03-10 Thread chris at bubblescope dot net
-- What|Removed |Added Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20408

[Bug c++/20408] Unnecessary code generated for empty structs

2005-03-10 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-10 16:00 --- ignore my random changing of severity.. -- What|Removed |Added Severity|minor

[Bug c++/20408] Unnecessary code generated for empty structs

2005-03-10 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-10 16:05 --- When you say has no effect in final code, are you talking about the problem you noticed, or the problem as a whole? I find for each extra X I add to the type of foo I get a line much like: movb %al, 28(%esp

[Bug middle-end/20411] New: Templated functions no inlined at -O2

2005-03-10 Thread chris at bubblescope dot net
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20411

[Bug other/20564] New: gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http

[Bug other/20564] gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-20 12:45 --- As soon as I've submitted this bug, I've found the documentation notes this change.. I would still ask is there a way to get back the earlier behaviour? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug other/20565] New: gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http

[Bug other/20566] New: gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http

[Bug other/20565] gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-20 13:02 --- Stupid webbrowser ¬_¬ *** This bug has been marked as a duplicate of 20564 *** -- What|Removed |Added

[Bug other/20564] gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-20 13:02 --- *** Bug 20565 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20564

[Bug other/20566] gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-20 13:03 --- Stupid webbrowser ¬_¬ *** This bug has been marked as a duplicate of 20564 *** -- What|Removed |Added

[Bug other/20564] gcov default behaviour changed

2005-03-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-20 13:03 --- *** Bug 20566 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20564

[Bug other/20564] gcov default behaviour changed

2005-03-21 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-21 10:14 --- (Hmm.. I thought I posted this before..) My personal problem isn't the lines beginning zero, but the ones like: function _Z3fooIiEiT_ called 1 returned 100% blocks executed 75% Which before I had to turn

[Bug libstdc++/20579] Segmentation fault after exception in list and set destructors

2005-03-21 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-21 19:00 --- This program may make it a bit clearer what is going on :) (the problem is your code I'm afraid, the compiler is fine) #includelist #includestdio.h struct VAR { VAR() {printf(VAR created\n);} ~VAR() {printf

[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L

2005-03-29 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-03-29 19:19 --- A friend of mine was recently caught by this bug.. is there any chance it could be fixed now? or is there still some problem holding it up (or just no-one cares?). Although I am by no means certain, I imagine

[Bug libstdc++/21035] Documentation for std::basic_string::compare() incorrect

2005-04-19 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-04-19 10:19 --- Yup, just checked the standard, and it agrees with the code (not the comment). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21035

[Bug libstdc++/21271] New: Invalid free in std::string

2005-04-28 Thread chris at bubblescope dot net
: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: apple-ppc-darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21271

[Bug libstdc++/21271] Invalid free in std::string

2005-05-01 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-05-01 10:08 --- Woops, false alarm, somehow I'd horribly, horribly messed up something. A clean OS reinstall seems to have cleared up this, and another unrelated problem. Sorry -- What|Removed

[Bug c++/21405] Template inlines have global visibility

2005-05-08 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-05-08 12:18 --- Out of interest, where do the docs say that? (I'm not being sarcastic, just interested) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21405

[Bug libstdc++/21796] (v7-branch) std::search not using std::find

2005-06-04 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-06-04 12:07 --- This is being held up by PR20408, Unnecessary code generated for empty structs, as we'd have to pass both the item to find and the comparitor (which is often an empty class) to std::find_if

[Bug libstdc++/21796] (v7-branch) std::search not using std::find

2005-06-18 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-06-18 22:18 --- Actually, *slaps forehead*, the problem of empty structs can just be avoided using EBO :) I'll knock up a patch doing just that :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21796

[Bug libstdc++/22131] std::num_get fails for input with invalid groups

2005-06-24 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-06-24 08:52 --- It's probably me being blind, but could you point out the part of the standard which defines what should be happening? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22131

[Bug libstdc++/26127] tr1/hashtable compile errors

2006-02-06 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-02-06 14:19 --- Yep, these both look like fairly obvious errors to me. -- chris at bubblescope dot net changed: What|Removed |Added

[Bug libstdc++/27530] Polible memory leak in std::vectorint::reserve() or std::vectorint::clear()

2006-05-10 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-05-10 11:31 --- Can you provide a complete program which demonstrates this link? I've tried looking at the code in question myself, and cannot observe a memory leak myself. -- chris at bubblescope dot net changed

[Bug libstdc++/28080] header dependencies

2006-06-23 Thread chris at bubblescope dot net
--- Comment #7 from chris at bubblescope dot net 2006-06-23 15:33 --- (In reply to comment #4) Subject: Re: header dependencies On Monday 19 June 2006 11:29, pcarlini at suse dot de wrote: --- Comment #1 from pcarlini at suse dot de 2006-06-19 09:29 Ok, let's see what we

[Bug libstdc++/28080] header dependencies

2006-06-23 Thread chris at bubblescope dot net
--- Comment #9 from chris at bubblescope dot net 2006-06-23 16:47 --- I just tried preprocessing vector, as an example. There isn't any obvious low-hanging fruit. The major problem is that most of the C standard libary ends up getting dragged in. I think a better goal would be to make

[Bug libstdc++/27530] Possible memory leak in std::vectorint::reserve() or std::vectorint::clear()

2006-07-29 Thread chris at bubblescope dot net
--- Comment #6 from chris at bubblescope dot net 2006-07-29 10:08 --- My natural suspision would be that your clone() function is incorrectly implemented. Can you show us the source to the CMessage object, and theMessageFactory.createInstance( …)? -- http://gcc.gnu.org/bugzilla

[Bug libstdc++/27530] Possible memory leak in std::vectorint::reserve() or std::vectorint::clear()

2006-08-03 Thread chris at bubblescope dot net
--- Comment #8 from chris at bubblescope dot net 2006-08-03 19:48 --- One quick piece of advice. Have you tried compiling your entire application against the libstdc++ debug mode? It might help narrow down where the problem is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27530

[Bug libstdc++/24975] Aliasing problems inside libstdc++

2005-11-21 Thread chris at bubblescope dot net
--- Comment #3 from chris at bubblescope dot net 2005-11-21 16:03 --- While it does look like there might be an error in this warning code, I also have a feeling we are doing something bad here. I looked at the examples in stl_set.h and we are doing reference casting from

[Bug c++/25137] New: Warning missing braces around initializer causing problems with tr1::array

2005-11-28 Thread chris at bubblescope dot net
: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137

[Bug c++/25137] Warning missing braces around initializer causing problems with tr1::array

2005-11-28 Thread chris at bubblescope dot net
--- Comment #2 from chris at bubblescope dot net 2005-11-28 15:17 --- Thats an option too, but I thought I'd see about gcc's opinion first, as I expected a much faster reply than I would get from the C++ steering committee :) I find the warning helpful for constructs like: struct S

[Bug c++/25137] Warning missing braces around initializer causing problems with tr1::array

2005-11-28 Thread chris at bubblescope dot net
--- Comment #5 from chris at bubblescope dot net 2005-11-28 16:28 --- I'll make a report. Don't worry, I'm clear on the difference between tr1::array and a C array, I just wanted to check that we agree this should produce a warning (in which case I will go through the tr1::array

[Bug c++/25137] Warning missing braces around initializer causing problems with tr1::array

2005-11-28 Thread chris at bubblescope dot net
--- Comment #6 from chris at bubblescope dot net 2005-11-28 16:33 --- Actually, is a report really approriate? Writing arrayint,3 = {1,2,3} is perfectly valid C++, just warned about with -Wmissing-braces -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137

[Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature

2006-01-04 Thread chris at bubblescope dot net
--- Comment #17 from chris at bubblescope dot net 2006-01-04 13:53 --- Just as a quick note, I've personally got code using the non-void return value of generate_n (because I'm going along a list, and didn't want to have to incremement n steps after filling the list, as that would cost

[Bug libstdc++/25306] fill_n, generate_n assume Size is modifiable

2006-01-10 Thread chris at bubblescope dot net
--- Comment #2 from chris at bubblescope dot net 2006-01-10 10:37 --- I'm unclear on why it should be convertable to one of the built-in integral types at all.. surely saying that iterator_traits_OutputIterator::difference_type (where _OutputIterator is the first parameter

[Bug libstdc++/25306] fill_n, generate_n assume Size is modifiable

2006-01-10 Thread chris at bubblescope dot net
--- Comment #4 from chris at bubblescope dot net 2006-01-10 17:00 --- For the record, I was thinking of: templatetypename _OutputIterator, typename _Size, typename _Tp _OutputIterator fill_n(_OutputIterator __first, _Size __n, const _Tp __value

[Bug c++/25751] New: Poor error when templating on undefined types

2006-01-11 Thread chris at bubblescope dot net
types Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net http://gcc.gnu.org/bugzilla

[Bug c++/25648] Spurious 'might be used uninitialized' warnings in STL headers with -O2

2006-01-11 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-01-11 17:21 --- This bug is fixed in 4.1 (and possibly 4.0, I don't have a copy). Is suspect it isn't a serious enough bug to get the fix backported to 3.4 (although others may know better than me) -- http://gcc.gnu.org/bugzilla

[Bug libstdc++/25823] --disable-hosted-libstdcxx causes build break

2006-01-17 Thread chris at bubblescope dot net
--- Comment #3 from chris at bubblescope dot net 2006-01-17 18:09 --- Does that patch break other systems? (linux-x86 would seem the obvious thing to try..) -- chris at bubblescope dot net changed: What|Removed |Added

[Bug other/18961] Large output causes testsuite failure

2004-12-13 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-12-13 17:56 --- I'm fairly sure it's not a timeout (It takes 5 seconds to run on my computer). It might be a dejagnu bug. Unfortunatly I find it very hard to find out exactly what is causing this bug. While I agree

[Bug debug/18961] New: Large output causes testsuite failure

2004-12-13 Thread chris at bubblescope dot net
Version: 4.0.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org

[Bug rtl-optimization/19001] [3.4/4.0 Regression] Loops with power of two step and variable bounds not unrolled

2004-12-15 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-12-15 12:28 --- Also (stating the perhaps blindingly obvious), this bug is not being caused by the fact that the loop contains a return statement. int check(int* a,int *b) { int* returnval=b; for(;ab;++a) if(*a) returnval

[Bug rtl-optimization/19001] [3.4/4.0 Regression] Loops with power of two step and variable bounds not unrolled

2004-12-18 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-12-18 19:20 --- I thought I'd post this here rather than as a new bug.. I will do if there isn't a reply within a week or so. A very similar regression is: int check(int a,int b, char* c) { for(;a!=b;a+=4) if(c[a]==1

[Bug c/19078] New: [4.0 Regression] Poor quality code after loop unrolling.

2004-12-19 Thread chris at bubblescope dot net
ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19078

[Bug rtl-optimization/19001] [3.4 Regression] Loops with power of two step and variable bounds not unrolled

2004-12-19 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-12-19 10:59 --- Sorry, I was testing for the existance of loop-unrolling by timing, rather than looking at the code. The compiler is unrolling the code I provided, but then optimised quite badly. As this might

[Bug c++/19246] New: Cannot instansate const struct without constructor.

2005-01-03 Thread chris at bubblescope dot net
ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19246

[Bug libstdc++/19433] New: set, multiset, map, multimap misuse hint on insert

2005-01-13 Thread chris at bubblescope dot net
at bubblescope dot net CC: caj at cs dot york dot ac dot uk,gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19433

[Bug c++/19544] New: Difference in behaviour if default constructor added

2005-01-20 Thread chris at bubblescope dot net
dot org ReportedBy: chris at bubblescope dot net CC: caj at cs dot york dot ac dot uk,gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19544

[Bug libstdc++/19544] Difference in behaviour if default constructor added

2005-01-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-01-20 15:14 --- Heres another test-case... #includealgorithm struct ptr { int* a; ptr() {} }; struct foo { ptr array[1]; foo() { std::uninitalized_fill_n(array,1,ptr()); } }; foo f; Which shows it isn't limited

[Bug libstdc++/19544] Difference in behaviour if default constructor added

2005-01-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-01-20 19:25 --- I never thought it was a bug in the library :) I however throught (incorrectly) that copying an unassigned pointer was valid, mainly as some other test case was considering constructing std::vectorstd

[Bug libstdc++/19567] dynamic_cast failure in dlopen-ed shared object

2005-01-28 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-01-28 14:53 --- I don't think this bug has anything to do with libstdc++ (which over covers errors in the c++ standard library). I would suggest changing the Component to c++, which I suspect a closer match for where the bug

[Bug other/18961] Large output causes testsuite failure

2005-02-08 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-02-08 13:24 --- Yep, that fixed it. Marking it as a dup. *** This bug has been marked as a duplicate of 12096 *** -- What|Removed |Added

[Bug other/12096] dejagnu truncates output from spawned commands randomly, causing intermittant failed tests

2005-02-08 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-02-08 13:24 --- *** Bug 18961 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug libstdc++/18159] tr1/tuple is broken on darwin

2004-10-26 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-10-26 15:30 --- Yes, sorry, I was not aware of this convention. I'm currently performing some general clean-up to the autogeneration of the tuple header and will at the same time fix this. It's been suggested that _T should

[Bug libstdc++/18882] wrong results of pow( complexlong double(2, 1), odd integer )

2004-12-08 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2004-12-08 14:15 --- Heres a much smaller testcase which shows this bug: #includestdio.h class complex { public: complex(long double r=0, long double i=0) { __real__ _M_value = r; __imag__ _M_value = i

[Bug libstdc++/22265] Non -native type entry is getting added to an STL Map incorrectly

2005-07-01 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-01 09:12 --- on 4.0.0, ppc-darwin I don't see this problem. On x86-cygwin 3.4.4 I do, but I don't think it has anything to do with map, or net, or anything. Consider the following program below. It prints: bat:bat

[Bug libstdc++/22265] Non -native type entry is getting added to an STL Map incorrectly

2005-07-01 Thread chris at bubblescope dot net
-- What|Removed |Added CC||chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22265

[Bug libstdc++/22265] Non -native type entry is getting added to an STL Map incorrectly

2005-07-01 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-01 09:47 --- After a little thought (sorry, should have done it before), this bug all comes down to the order of execution of function parameters, which I believe is undefined? BTW, in case I wasn't clear enough

[Bug libstdc++/17012] std::list's function, remove, looks like it is reading memory that has been freed.

2005-07-05 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-05 12:11 --- It seems to me that this is just a simple NAB. There seems to be 3 options 1) Just leave it as is 2) Alter list::remove so in debug mode it aborts if you give it an element from the list 3) Alter list

[Bug libstdc++/23053] Const-correctness issue in TR1 hashtable

2005-07-25 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-25 07:46 --- Actually according to the TR1 spec (n1745 at least), there should be a non-const version which returns an iterator, and a const version which returns a const_iterator. -- http://gcc.gnu.org/bugzilla

[Bug libstdc++/23053] Const-correctness issue in TR1 hashtable

2005-07-25 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-25 07:52 --- Apologises, I misread the problem. Ignore my previous comment. Yes, I agree that find_node (which is a private function) should be const. An identical problem exists calling equal_range -- http

[Bug libstdc++/22634] partial_sum is too constrained

2005-07-25 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-07-25 09:03 --- I'm not personally 100% sure that this should be fixed, I've used partial_sum where I've assumed this behaviour, and adding the things in the output type would have broken... I've attached the work-around

[Bug libstdc++/23244] __gnu_cxx::hash_map inconsistent iterator behavior

2005-08-05 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-05 08:29 --- While it doesn't fix your bug, if you want a hash_map I'd advise looking at tr1/unordered_map, which I'd expect to work better. I think however you'll find that all implementations of hash_map strictly

[Bug libstdc++/23358] _Destroy doesn't optimize for scalar types

2005-08-12 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-12 18:34 --- Yep, it's the extra template parameter which is confusing the compiler. If you have parameters it can't deduce from the input to a function, they must be given explicitly, so in this case that function

[Bug rtl-optimization/23361] New: Can't eliminate empty loops with power of two step and variable bounds

2005-08-12 Thread chris at bubblescope dot net
: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23361

[Bug rtl-optimization/23362] New: Can't eliminate empty loops with power of two step and variable bounds

2005-08-12 Thread chris at bubblescope dot net
: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23362

[Bug rtl-optimization/23362] Can't eliminate empty loops with power of two step and variable bounds

2005-08-12 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-12 18:58 --- Stupid webbrowser. *** This bug has been marked as a duplicate of 23361 *** -- What|Removed |Added

[Bug tree-optimization/23361] Can't eliminate empty loops with power of two step and variable bounds

2005-08-12 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-12 18:58 --- *** Bug 23362 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23361

[Bug libstdc++/23358] _Destroy doesn't optimize for scalar types

2005-08-13 Thread chris at bubblescope dot net
-- What|Removed |Added CC||chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23358

[Bug libstdc++/23417] bits/stl_tree.h isn't -Weffc++ clean

2005-08-16 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-16 09:10 --- In the FAQ (4.4), things that only looks like bugs, mentions that libstdc++ isn't -Weffc++ clean. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23417

[Bug libstdc++/23417] bits/stl_tree.h isn't -Weffc++ clean

2005-08-16 Thread chris at bubblescope dot net
-- What|Removed |Added CC||chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23417

[Bug libstdc++/23465] New: Assignment fails on TR1 unordered containers

2005-08-18 Thread chris at bubblescope dot net
ReportedBy: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23465

[Bug libstdc++/23465] Assignment fails on TR1 unordered containers

2005-08-18 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-18 17:26 --- The following simple piece of code fails to compile. #include tr1/unordered_set int main(void) { std::tr1::unordered_setint i,j; i = j; } The error is in fact in tr1/hashtable, and as all the unordered

[Bug libstdc++/23633] map::insert() invalidates reverse_iterators

2005-08-30 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-30 15:35 --- While this behaviour is suprising, it is also not a bug. The problem comes from the fact that *(reverse_iterator(i)) = *(i-1), so when you dereference a reverse_iterator the value you actually get is from

[Bug libstdc++/23633] map::insert() invalidates reverse_iterators

2005-08-30 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-08-30 20:16 --- Just so we are 100% clear on what is occuring (I realise it might not be obvious from my message) M.rbegin() returns an iterator i = std::reverse_iterator(M.end()); *i therefore returns *--(M.end

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-07 19:22 --- Hmm.. this is I believe a bug, but a very hard one to trigger. 1) This bug is very sensitive. It only occurs if the const_iterator member function is const and the iterator member function isn't

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
-- What|Removed |Added CC||chris at bubblescope dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23767

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-07 20:06 --- You are right, I previously didn't think it was possible without adding some more template parameters. However, I should have known there is nothing you can't do with a few templates :) How about

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-07 20:39 --- Actually, __normal_iterator is what std::string uses for it's iterator class, so we could be in trouble. On the note of removing enable_if, my only other thought is something like: templateclass _Iterator

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-07 20:51 --- I just tried adding a template parameter, and it does break things unfortunatly. In an old file define something like: void f(vectorint::iterator v) {..} and then try to call it from a file that includes

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-07 21:07 --- Actually for inline functions, even with -fno-implicit-templates, instansiations are still generated (I can kind of see why. You could argue they shouldn't be, but they are) -- http://gcc.gnu.org

[Bug tree-optimization/22444] [4.0/4.1 regression] ICE at tree-into-ssa.c:466

2005-09-15 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-15 13:32 --- I get the same bug on darwin8.2.0, with 768MB of ram -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22444

[Bug tree-optimization/23361] Can't eliminate empty loops with power of two step and variable bounds

2005-09-15 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-15 14:02 --- Expanding slightly, I tried the following 4 functions. All were removed by -funsafe-loop-optimisations, but only foo3 was removed by -O3 without -funsafe-loop-optimisations. I can't see a good reason

[Bug libstdc++/23978] New: tr1::tie doesn't work with std::pair

2005-09-20 Thread chris at bubblescope dot net
: chris at bubblescope dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23978

[Bug libstdc++/23978] tr1::tie doesn't work with std::pair

2005-09-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-20 23:02 --- I'll have a closer look. I think not, as on my compiler boost::tie does work, it's tr1::tie which doesn't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23978

[Bug libstdc++/23978] tr1::tie doesn't work with std::pair

2005-09-20 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-20 23:28 --- Nope, the code in PR 23896 works fine on my compiler. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23978

[Bug libstdc++/23990] compiling code with wchar_t .. gives linking error

2005-09-21 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-21 10:13 --- Could you provide the output of g++ -v, and the operating system you are using? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23990

[Bug libstdc++/23990] compiling code with wchar_t .. gives linking error

2005-09-21 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-21 11:01 --- Hopefully someone with more Solaris knowledge than me may come along (the code works fine on any OSes I can get my hands on) As a temporary fix, you might find putting template class char_traitswchar_t

[Bug libstdc++/23978] tr1::tie doesn't work with std::pair

2005-09-22 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-22 10:49 --- Ah ha, found the problem. tuple has a copy constructor for std::pair, but not an operator=(std::pair). It should. I'll prepare a patch. While I'm at fixing this, there are quite a lot of functions

[Bug libstdc++/24064] tr1::unordered_map seems to seg-fault when caching hash values

2005-09-26 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-26 13:42 --- I'm not convinced that this is valid code.. unless I'm missing something, you are altering values inside the hash table, which isn't allowed unless you change the values in such a way that their hashed

[Bug libstdc++/24064] tr1::unordered_map seems to seg-fault when caching hash values

2005-09-26 Thread chris at bubblescope dot net
--- Additional Comments From chris at bubblescope dot net 2005-09-26 13:47 --- Sorry, you are of course changing the second value, which is fine. It's the first one you shouldn't change. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24064

[Bug libstdc++/30203] std::vector::size() 10x speedup (patch)

2006-12-13 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-12-13 18:07 --- -O1 is enough to remove all advantages of this patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30203

[Bug libstdc++/30204] std::vector operator[] 10x speedup (patch)

2006-12-13 Thread chris at bubblescope dot net
--- Comment #1 from chris at bubblescope dot net 2006-12-13 18:08 --- -O1 is enough to remove all advantages of this patch. Also, that isn't really a fair timing comparison, as you've removed the function call altogether (I still expect it to be faster, but possibly not by 10x

[Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array

2007-01-09 Thread chris at bubblescope dot net
--- Comment #3 from chris at bubblescope dot net 2007-01-09 22:21 --- The standard refers to (l+n)%size(), so if size()=0, that seems to be undefined. On the other hand, it seems fairly obvious what should happen in this case (ie nothing). On an unrelated note, isn't there a another

  1   2   3   >