[Bug libstdc++/45347] concurrence.h: In constructor '__gnu_cxx::__cond::__cond()': /home/jayk/obj/gcc451/alphaev67-dec-osf5.1/libstdc++-v3/include/ext/concurrence.h:276:29: warning: missing initialize

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-09-03 23:21 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45523] [C++0x] Failure to bind auto variable to function template instance

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-03 17:10 --- Let's add Jason in CC about this one too. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug libstdc++/45347] concurrence.h: In constructor '__gnu_cxx::__cond::__cond()': /home/jayk/obj/gcc451/alphaev67-dec-osf5.1/libstdc++-v3/include/ext/concurrence.h:276:29: warning: missing initialize

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-03 15:05 --- Thus, Jon, are we just missing a #pragma GCC system_header at the beginning of that file? In case, just add it and close the PR? -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/45520] [C++0x] Regression: compiler segmentation fault on decltype from a dereferenced map iterator

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-09-03 14:44 --- Let's ask Jason to have a look. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug c++/45510] Bug with anonymous unions and bit-fields

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-09-03 10:46 --- If you look at the actual Standard, both alignment and allocation of bit-fields are implementation defined. Thus, as far as I can see, at best we are talking about non-portable implementation defined behavior

[Bug c++/45501] Compiler does not find template function if member is addressed with "this"

2010-09-03 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-03 09:09 --- Ah, ok, thanks Jason. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45501

[Bug c++/45510] Bug with anonymous unions and bit-fields

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-03 01:09 --- Fair enough, but first blush I also don't see any text in the C++ Standard guaranteeing the behavior you want, wondered if you actually can get it with other compilers, maybe as implementation de

[Bug c++/45510] Bug with anonymous unions and bit-fields

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-03 00:02 --- Without having seriously looked into your code, I note that two completely different, closed source compilers (ICC and SunStudio) leads to the same behavior as GCC at runtime. Does your code actually "

[Bug c/45502] Passing multi-dimensional array to function using C99 VLA function parameter format fails if function is inlined

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-02 22:31 --- Note that if the problem affects only the GCC delivered with that SUSE distro should be reported to SUSE, not here. Personally, I can't reproduce it with stock 4.3.2 or 4.3.3 or current FSF releases fro

[Bug c/45502] Passing multi-dimensional array to function using C99 VLA function parameter format fails if function is inlined

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-02 18:35 --- I can't reproduce this with FSF 4.3.2, neither 4.3.3, neither anything more recent. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug c++/45501] Compiler does not find template function if member is addressed with "this"

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-02 17:44 --- As a matter of fact, basing on my rough understanding of '.template', GCC may well be correct: my rule of thumb is that 'template' is required when the construct before the period d

[Bug c++/45501] Compiler does not find template function if member is addressed with "this"

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-09-02 17:16 --- Since PrintTextFrom is a template, you can (should) write: this->prn.template PrintTextFrom< MetaObj >(); which works with both compilers. Since apparently ICC 11.1 likes in strict mode also

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #49 from paolo dot carlini at oracle dot com 2010-09-02 16:07 --- Confirmed ~ 2x on my i7. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #47 from paolo dot carlini at oracle dot com 2010-09-02 14:10 --- Ok, Paolo, let's give this small change a try. About PCHs saving time during make check, that seems uncontroversial, I can provide some numbers later, but if you just try removing the generated PCHs by

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread paolo dot carlini at oracle dot com
--- Comment #45 from paolo dot carlini at oracle dot com 2010-09-02 09:42 --- Paolo (Bonzini), Ralf, I'm going to add -nostdinc++ to PCHFLAGS in include/Makefile.am. Are there any risks of regressions? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #17 from paolo dot carlini at oracle dot com 2010-09-02 00:13 --- No. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44963

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #15 from paolo dot carlini at oracle dot com 2010-09-01 23:59 --- >From now on I will not apply *any* patch not fixing extremely serious regressions to the 4.4.x branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44963

[Bug libstdc++/45488] lower_bound doesn't really require the iterator parameters to be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-09-01 23:00 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-09-01 22:49 --- We are already well beyond the size of change which is not fixing any real bug and applied without a Copyright Assignment on file. If you are interested in enhancing the library, please file one and then start

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-09-01 22:42 --- Doesn't always work with proxy iterators. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45488

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-09-01 22:37 --- We are not adding testcases here, because a forward iterator must be default constructible. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45488

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-09-01 22:09 --- Ok, I'll do it, for equal_range too, and __half can also be moved inside the loop. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-01 20:53 --- Granted, __middle is not used after the loop, thus moving the declaration inside the loop seems a tad cleaner. But then we should do the change consistently for both lower_bound overloads and for upper_bound

[Bug libstdc++/45488] lower_bound iterator must be default constructible

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-09-01 20:44 --- I do not understand: according to Table 74 *any* forward iterator is default constructible, and C++0x isn't changing that, is even more explicit. Thus, I don't see which problem you are tryin

[Bug c++/45479] Exceptions not delivered properly after thread cancellation

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-09-01 13:53 --- Likewise about ICC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45479

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-09-01 13:49 --- For the record, building with ICC gives the same behavior of GCC. Let's ask Jason' opinion about this. -- paolo dot carlini at oracle dot com changed: What

[Bug c++/45481] Exception is erroneously rethrown from a constructor initializer try/catch block

2010-09-01 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Severity|critical|normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45481

[Bug c++/45479] Exceptions not delivered properly after thread cancellation

2010-09-01 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Severity|blocker |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45479

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-31 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-08-31 17:41 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45043] [4.4/4.5 Regression] ICE: tree check: expected identifier_node, have bit_not_expr in grokdeclarator, at cp/decl.c:8113 on invalid code

2010-08-30 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-30 18:15 --- Fixed for 4.6.0. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45043] [4.4/4.5/4.6 Regression] ICE: tree check: expected identifier_node, have bit_not_expr in grokdeclarator, at cp/decl.c:8113 on invalid code

2010-08-30 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-08-30 16:29 --- Just checking that TREE_CODE (dname) == IDENTIFIER_NODE before using MAIN_NAME_P on it appears to fix the issue. -- paolo dot carlini at oracle dot com changed: What|Removed

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

2010-08-29 Thread paolo dot carlini at oracle dot com
--- 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

[Bug libstdc++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"

2010-08-29 Thread paolo dot carlini at oracle dot com
--- Comment #15 from paolo dot carlini at oracle dot com 2010-08-29 10:23 --- *** Bug 45442 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45442] std::operator>> discards appropriate floating-point values (Inf, -Inf, NaN)

2010-08-29 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-29 10:23 --- *** This bug has been marked as a duplicate of 27904 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45328] [C++0x] bug w/ typedefs and std::initializer_list

2010-08-18 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-18 23:19 --- Actually, both mainline and the released 4.5.1 work, most likely a duplicate of PR 44703 indeed. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45328] [C++0x] bug w/ typedefs and std::initializer_list

2010-08-18 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-08-18 23:11 --- Let's CC Jason. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug c/45320] Strict-aliasing misdetection

2010-08-18 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-18 15:28 --- In general terms, ins't true that the warnings produced at -O0 are often much weaker than when optimizing? I don't see anything aliasing-specific here... -- http://gcc.gnu.org/bugzilla/show_

[Bug libstdc++/45276] Need to document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE

2010-08-18 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-18 15:24 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-17 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-08-17 13:07 --- Sure, I forgot to grep, was in an hurry because I'm leaving for a few days of vacations, but will do it momentarily. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45300

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread paolo dot carlini at oracle dot com
--- Comment #10 from paolo dot carlini at oracle dot com 2010-08-16 19:02 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-08-16 18:29 --- Good point, but I think that in these whole program optimization times getting the declaration right, that is consistent with the definition, is in any case a good idea. -- http://gcc.gnu.org/bugzilla

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-16 17:56 --- Ok. Actually my question was born more naive, simply about replacing after so many years 'restrict' with with either '__restrict' or '__restrict__', that is something with r

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-16 17:35 --- Let's add in CC Jakub, just in case he can see something wrong vs the C library with using __restrict__ here. -- paolo dot carlini at oracle dot com changed: What|Re

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-08-16 17:34 --- I see. I'm not sure how much difference it makes, but I think we should change those, to __restrict__. Note, in C++ 'restrict' is not a keyword in any case - not even in C++0x mode which otherwi

[Bug libstdc++/45283] performance/30_threads/future/polling.cc fails at compile time

2010-08-14 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-14 21:36 --- Thanks a lot Jon: now check-performance should be clean again. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45283

[Bug libstdc++/45281] performance/ext/pb_ds/priority_queue_text_modify_down_timing.cc fails at compile time

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-14 00:10 --- Fixed. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45283] New: performance/30_threads/future/polling.cc fails at compile time

2010-08-13 Thread paolo dot carlini at oracle dot com
: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: paolo dot carlini at oracle dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45283

[Bug libstdc++/45281] performance/ext/pb_ds/priority_queue_text_modify_down_timing.cc fails at compile time

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-13 22:38 --- Turns out this CH 15 (N3105). I'll implement it, at least as far as the container adaptors are concerned. -- paolo dot carlini at oracle dot com changed: What|Re

[Bug libstdc++/45280] Stream parsing of digit-then-e (with no exponent) now fails

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-08-13 21:20 --- I'm not erring. We changes this behavior on purpose, after having also checked that *2* other, completely independent, implementations agree (ie, Dinkumware and Roguewave). -- http://gcc.gnu.org/bug

[Bug libstdc++/45280] Stream parsing of digit-then-e (with no exponent) now fails

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-13 21:00 --- You are of course wrong. Parsing something like "59e" as an integer type of course succeeds and gives "59". Really, we have *tons* of testcases about that in the testsuite. We kn

[Bug libstdc++/45280] Stream parsing of digit-then-e (with no exponent) now fails

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-13 20:23 --- By the way, if you read 22.2.3.1 in C++98, it's clear that 'e' is *not* just any other character: after 'e', a sign is optional but at least a digit is compulsory. -- ht

[Bug libstdc++/45280] Stream parsing of digit-then-e (with no exponent) now fails

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-13 20:15 --- Yes, this is intended. We even have testcases about that. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45281] New: performance/ext/pb_ds/priority_queue_text_modify_down_timing.cc fails at compile time

2010-08-13 Thread paolo dot carlini at oracle dot com
timing.cc -- Summary: performance/ext/pb_ds/priority_queue_text_modify_down_ti ming.cc fails at compile time Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: paolo dot carlini at oracle dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45281

[Bug libstdc++/45279] reading complex (nan,0) and (nan,nan): write o.k, reading back: wrong data read

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-13 18:39 --- This has nothing to do with complex per se, it's simply about parsing nan, infinity, and so on. We'll reconsider the issue in the context of C++0x (but as a matter of fact I'm afraid we d

[Bug libstdc++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-08-13 18:39 --- *** Bug 45279 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/43738] basic_file_stdio.cc uses ioctl on a fd, but not available on mingw32

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-08-13 18:00 --- Dave, any news on this? Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43738

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #37 from paolo dot carlini at oracle dot com 2010-08-13 13:31 --- (In reply to comment #36) > I'm not sure you realize just how true that is. But keep going, you're > by far one of the best trolls I've seen in GCC land. Well, I can easily imagine mo

[Bug c++/45153] DWARF DW_AT_external flag set for undefined variables

2010-08-13 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-08-13 10:57 --- . -- paolo dot carlini at oracle dot com changed: What|Removed |Added Status

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-12 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-08-12 14:37 --- > It's Joaquín :-) You're welcome. Sorry. I don't know what I was thinking. > Perfect, let's do that. Regarding #579, last I heard from my contact > in the committee is th

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-12 Thread paolo dot carlini at oracle dot com
--- Comment #10 from paolo dot carlini at oracle dot com 2010-08-12 12:42 --- > My comments on your last two posts: Thanks Manuel. > I think the impact of this is independent of #579: even if erase > does not return an iterator, the cached bucket pointer has to > be

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-12 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-08-12 10:55 --- Maybe averaging over all possible keys, we are fine: the probability to erase the first non-empty bucket is of the order 1 / # buckets, thus decreases exactly as fast as # buckets grows. On the average the

[Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault

2010-08-12 Thread paolo dot carlini at oracle dot com
--- Comment #58 from paolo dot carlini at oracle dot com 2010-08-12 10:18 --- . -- paolo dot carlini at oracle dot com changed: What|Removed |Added Status

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-12 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-08-12 10:02 --- In practice, I don't see how this issue can be tackled independently from the complexity of erase returning iterator: adding a cache for the first non-empty bucket is generally simple, but there is a pr

[Bug libstdc++/44480] [C++0x] Linear performance of begin() in unordered associative containers

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-12 01:09 --- Working on this too. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug target/45084] configure: error: no 8-bit type

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-11 17:32 --- Ok, thanks. Let's ask for feedback then. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug target/45084] configure: error: no 8-bit type

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-11 17:25 --- Andreas, can you have a look to this? I'm recategorizing it as target, I have never seen anything similar on Linux (or anywhere else for that matter) -- paolo dot carlini at oracle dot com ch

[Bug libstdc++/26211] [DR 419, US 137 / US 139] basic_istream::tellg, seekg are unformatted input functions

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-08-11 17:22 --- The solution involves clearing eofbit first, see US 137 / US 139. Maybe we should prototype it before Batavia. -- paolo dot carlini at oracle dot com changed: What|Removed

[Bug c++/45254] data declaration parse error

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-11 10:03 --- This is plain invalid: you are constructing a temporary ofstream and then hoping to pass it to a constructor taking a ref, not a const ref, cannot work. -- paolo dot carlini at oracle dot com changed

[Bug libstdc++/42925] [GB 99] Not possible to compare unique_ptr with 0

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #16 from paolo dot carlini at oracle dot com 2010-08-11 08:51 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug bootstrap/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc

2010-08-11 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last

[Bug bootstrap/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-08-11 07:26 --- Thanks for your feedback Ian. Now, I'm not sure which target maintainer to suggest for powerpc-linux... David Edelsohn? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45053

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #43 from paolo dot carlini at oracle dot com 2010-08-11 07:08 --- Ok, even more obscure ;) Can you further investigate? Possibly pinging somebody knowledgeable about the specs? Before applying to the library the -nostdinc++ bits I'd like to make sure we fully understan

gcc-bugs@gcc.gnu.org

2010-08-11 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-11 07:06 --- Indeed, the library side of this is rather straightforward, we are already implementing the FCD correctly (I also checked there no DRs or NBCs open): template inline pair::__type

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #41 from paolo dot carlini at oracle dot com 2010-08-11 01:23 --- We need a build system expert here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

[Bug libstdc++/42925] [GB 99] Not possible to compare unique_ptr with 0

2010-08-10 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle |dot org

[Bug libstdc++/42925] [GB 99] Not possible to compare unique_ptr with 0

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-08-11 01:09 --- Great, I'll do that. -- paolo dot carlini at oracle dot com changed: What|Removed |

[Bug libstdc++/42925] Not possible to compare unique_ptr with 0

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #12 from paolo dot carlini at oracle dot com 2010-08-10 23:48 --- Jon, is this actually GB 99? Trivially adding something like (& co, likewise for shared_ptr): template inline bool operator!=(const unique_ptr<_Tp, _Tp_Deleter>& __x, nullptr_t

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #37 from paolo dot carlini at oracle dot com 2010-08-10 22:18 --- Thus, does adding -nostdinc++ to the PCHs flags work for you? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

[Bug c++/45246] optimizer dereference

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-10 08:17 --- What happens if you add -Wall to the command line? Current mainline tells me: u.cc: In function ‘void* foo(void*)’: u.cc:12:31: warning: dereferencing type-punned pointer will break strict-aliasing rules u.cc

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-10 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-08-10 07:23 --- Fixed. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-08-09 17:44 --- Ah, DR 691! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45236

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-09 14:20 --- This is certainly correct, and works as expected: template struct foo; template class C, int... II> struct foo> { struct bar {}; }; template struct A {}; foo<4, A<3>>::bar x; --

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-08-09 14:18 --- To me: template class C, int... II, int S> with the variadic II in the middle and S without a default, seems badly illegal. Jason, should we immediately produce a meaningful error when we see

[Bug c++/45236] [C++0x] Can't access nested type of a partial class specialization involving variadic parameters

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-09 14:11 --- I would say the problem isn't about "access" (even in non-technical sense), instead that the specialization itself isn't considered: indeed, if you comment it out, the error is exactly th

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2010-08-09 13:44 --- Note the specific constructor I mentioned: // XXX http://gcc.gnu.org/ml/libstdc++/2008-02/msg00047.html template tuple(tuple<_UElements...>& __in) we are *not* talking there about

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-08-09 13:31 --- Thanks for the clarification Jason. Indeed, I think the most robust fix is using SFINAE, and actually we have already quite a bit of language in the FCD about tuple constuctors vs constraining, I think it&#

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-08-09 Thread paolo dot carlini at oracle dot com
--- Comment #13 from paolo dot carlini at oracle dot com 2010-08-09 07:31 --- Any help with it would be appreciated, thanks. In general, if you mean to contribute it's a good idea to sort out first the Copyright Assignment paperwork, which is actually very simple but takes time:

[Bug libstdc++/41975] [C++0x] [DR579] unordered_set::erase performs worse when nearly empty

2010-08-08 Thread paolo dot carlini at oracle dot com
--- Comment #26 from paolo dot carlini at oracle dot com 2010-08-08 15:03 --- US 113, ES 2, US 118 / Issue 579 have been closed as NAD, thus let's figure out how best obtain O(1) in our implementation... -- paolo dot carlini at oracle dot com changed: What|Re

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-08-08 Thread paolo dot carlini at oracle dot com
--- Comment #11 from paolo dot carlini at oracle dot com 2010-08-08 14:57 --- Fixed for 4.5.2. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-08-08 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle |dot org

[Bug libstdc++/44963] [DR 1334] Ambiguous function overload using __gnu_cxx::crope with std::back_inserter in c++0x mode

2010-08-08 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2010-08-08 14:47 --- Instead of waiting for the resolution of DR 1334, I'm going to resolve this by adding in C++0x mode the overload: operator=(const typename _Container::value_type&) which is where 1334 is actua

[Bug libstdc++/45228] [C++0x] Can't copy-construct "tuple" from "const tuple" rvalue

2010-08-07 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-08-07 22:19 --- Our std::tuple still needs work, but I see am inconsistency here between the variadic and the non variadic case which I don't understand, irrespective of library details. Consider the following re

[Bug libstdc++/44475] bunch of warnings of "second definition" on osf

2010-08-07 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-08-07 16:32 --- Ok... -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/42032] Aliasing errors in stl_tree.h

2010-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-08-06 06:53 --- *** Bug 45202 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45202] Strict aliasing warning in stl_tree (returning a copy of a set from a member function in a loop)

2010-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-08-06 06:53 --- *** This bug has been marked as a duplicate of 42032 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug bootstrap/45053] libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc

2010-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-08-05 14:38 --- Ian, is this a libgcc issue? Can you suggest the best wa to triage it? Thanks. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45193] unqualified atomic access

2010-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-05 09:34 --- *** This bug has been marked as a duplicate of 45191 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/45191] unqualified atomic access

2010-08-05 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-05 09:34 --- *** Bug 45193 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45191

[Bug c++/45167] [C++0x] lambda+template="Internal error: Segmentation fault (program cc1plus)"

2010-08-02 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-08-03 06:48 --- Apparently this is still happening in mainline. Jason, can you have a look? -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug libstdc++/40974] cannot build gcc-4.4.1: fenv_t has not been declared

2010-08-01 Thread paolo dot carlini at oracle dot com
--- Comment #35 from paolo dot carlini at oracle dot com 2010-08-02 06:53 --- Thanks a lot Armand (by the way, many thanks to Ralf too) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

<    1   2   3   4   5   6   7   8   9   10   >