[Bug c++/42810] Enumeration with sequential values has its for-loop exit condition optimized out.

2010-01-28 Thread jwakely dot gcc at gmail dot com
--- Comment #22 from jwakely dot gcc at gmail dot com 2010-01-28 10:13 --- (In reply to comment #14) > > So does the C++ standard say that it is acceptable for the compiler to drop > support for an out-of-range enumeration value in a way that the programmer has > no ide

[Bug libstdc++/34106] [parallel mode] Atomic operations compatibility layer needs cleanup

2010-01-28 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2010-01-28 17:46 --- and I thought everyone had forgotten about that patch ;) granted, ICC uses libstdc++, but doesn't it already have to support the same atomic builtins as used elsewhere in the library? And my patch ch

[Bug libstdc++/34106] [parallel mode] Atomic operations compatibility layer needs cleanup

2010-01-28 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2010-01-28 17:47 --- similarly, if cygwin and mingw32 implement __sync_fetch_and_add etc. then why keep custom versions for those platforms? (but maybe the builtins aren't implemented on those platforms - I have no

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

2010-02-01 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2010-02-01 17:01 --- I think the code is invalid. In 4.4 the expression (ptr != 0) converted ptr to an unspecified-bool-type and compared that to 0. In 4.5 the impicit conversion has been removed, and you need to say static_cast(ptr

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

2010-02-01 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2010-02-01 17:22 --- there is this comparison function: template bool operator!=(const unique_ptr& x, const unique_ptr& y); What should T2 and D2 be deduced as, in the conversion from nullptr_t to unique_ptr ? Or to put it

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

2010-02-01 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2010-02-01 17:36 --- (In reply to comment #5) > Jon, is there a thread on the reflector about related issues? I spotted > something but couldn't exactly remember... LWG 834 is about comparing unique_ptr::pointer to nul

[Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example

2010-02-05 Thread jwakely dot gcc at gmail dot com
--- Comment #23 from jwakely dot gcc at gmail dot com 2010-02-05 18:40 --- I realised the other day I hadn't followed up on a fix for this. Here's some of the email I got from Lawrence just before Christmas, I haven't heard anything more recent: > I noticed whi

[Bug c++/44021] Templates with -Wtype-limits produces warnings.

2010-05-07 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-05-07 08:49 --- this seems like a good candidate for using template specialisation to alter the behaviour I think the warning is still useful for templates, since it warns you of a potential mistake in your logic. It doesn&#

[Bug c++/44283] New: bad error recovery for explicit template instantiation in wrong namespace

2010-05-26 Thread jwakely dot gcc at gmail dot com
;0>(); ^ "ComeauTest.c", line 6: error: invalid explicit instantiation declaration template void g<0>(); ^ -- Summary: bad error recovery for explicit template instantiation in wrong namespace Product: gcc

[Bug c++/44285] Need an option that will create symbols for all public c++ methods, not only for those which bodies are outside the class declaration

2010-05-26 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2010-05-26 16:36 --- If you don't want the functions to be treated as inline don't make them inline Have you tried -fkeep-inline-functions ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44285

[Bug c++/44285] Need an option that will create symbols for all public c++ methods, not only for those which bodies are outside the class declaration

2010-05-26 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-05-26 16:55 --- If you only want meth_used and meth_unused to be emitted but you insist on making them inline, then put them in a separate translation unit and compile that with -fkeep-inline-functions. If I understand what you

[Bug libstdc++/44339] Usage of std::weak_ptr in ordered stl container (C++0x)

2010-05-31 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-05-31 10:16 --- n2637 removed comparisons on weak_ptr http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44339

[Bug c++/44380] [C++0x]: result_of broken for functor references.

2010-06-02 Thread jwakely dot gcc at gmail dot com
--- Comment #8 from jwakely dot gcc at gmail dot com 2010-06-02 17:09 --- gcc 4.3 was released 18 months before the FCD, at that time the specification of result_of was quite different. Also, until the gcc 4.5.0 release std::result_of was based on the tr1::result_of code. -- http

[Bug libstdc++/40296] [C++0x] std::exception_ptr comparisons

2010-06-02 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2010-06-02 17:17 --- The NullablePointer concept is new, so yes, it's changed. I'll deal with this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40296

[Bug libstdc++/40296] [C++0x] std::exception_ptr comparisons

2010-06-02 Thread jwakely dot gcc at gmail dot com
--- Comment #14 from jwakely dot gcc at gmail dot com 2010-06-02 17:26 --- (In reply to comment #10) > AFAIK, the following code should work but does not anymore cause of this bug > fix: > > std::exception_ptr e; > > if (e) > { > /* ... */ > } I

[Bug libstdc++/40296] [C++0x] std::exception_ptr comparisons

2010-06-02 Thread jwakely dot gcc at gmail dot com
--- Comment #15 from jwakely dot gcc at gmail dot com 2010-06-02 17:30 --- (In reply to comment #14) > I'm fairly sure that's not valid. > That relies on an implicit conversion to bool actually that's nonsense ... that is a contextual conversion! anyway, I

[Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors

2010-06-03 Thread jwakely dot gcc at gmail dot com
--- Comment #11 from jwakely dot gcc at gmail dot com 2010-06-03 09:18 --- (In reply to comment #10) > (In reply to comment #9) > > I've been experimenting with this patch, which warns if there is a missing > > mem-initializer for a scalar. > > > > It

[Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors

2010-06-03 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2010-06-03 09:27 --- Apart from the false positives, another problem is that the check for layout_pod_type_p is not right. An empty class is a POD but doesn't need initialising. -- http://gcc.gnu.org/bugzilla/show_bug.c

[Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors

2010-06-03 Thread jwakely dot gcc at gmail dot com
--- Comment #14 from jwakely dot gcc at gmail dot com 2010-06-03 11:24 --- Created an attachment (id=20817) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20817&action=view) better -Wmeminit patch This version ignores empty classes and checks for a nontrivial default ctor

[Bug c++/44399] Problem with command line arguments in windows

2010-06-03 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2010-06-03 13:24 --- If it's a cygwin executable the behaviour might be caused by cygwin's "globber" In any case, it's not gcc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44399

[Bug middle-end/44416] [4.6 regression] Failed to build 447.dealII in SPEC CPU 2006

2010-06-04 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2010-06-04 14:56 --- I don't have the SPEC benchmarks either, but probably deal.II uses ptrdiff_t unqualified, without explicitly including either or http://www.dealii.org/developer/doxygen/deal.II/block__vector_8h

[Bug middle-end/44416] [4.6 regression] Failed to build 447.dealII in SPEC CPU 2006

2010-06-04 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2010-06-04 15:00 --- certainly true for an older version http://ganymed.iwr.uni-heidelberg.de/~deal/5.2.0/doxygen/deal.II/block__vector_8h.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44416

[Bug libstdc++/24347] Document boost_shared_ptr vs concurrency

2007-11-06 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2007-11-06 14:34 --- Some related discussion: http://gcc.gnu.org/ml/libstdc++/2007-10/msg00180.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24347

[Bug c++/11159] erroneous warning in copy ctor with virtual inheritance

2007-11-14 Thread jwakely dot gcc at gmail dot com
--- Comment #13 from jwakely dot gcc at gmail dot com 2007-11-14 13:27 --- (In reply to comment #10) > > I do not have access to std::basic_ios from MyStream. Solution here? Yes you do. The warning can be prevented by initialising the virtual base: MyStream() : std::ios(

[Bug c++/5645] gcc warns that pure virtual class not explicitly initialized

2007-11-14 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2007-11-14 13:38 --- Isn't this warning simply bogus? In other contexts if a default constructor is available it will be used without warning, whether explicitly used or not. e.g. non-virtual bases in constructor initializer

[Bug libstdc++/24347] Document boost_shared_ptr vs concurrency

2007-12-17 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2007-12-17 22:14 --- Between http://gcc.gnu.org/onlinedocs/libstdc++/20_util/shared_ptr.html and http://gcc.gnu.org/onlinedocs/libstdc++/ext/concurrence.html and the shared_ptr code, which has been simplified and commented, I think

[Bug c/32415] libgcc_s not found in library search path with --enable-version-specific-runtime-libs

2008-06-16 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2008-06-16 11:12 --- This has now been broken for at least 3 releases and is going to stay broken in 4.4 at this rate. Could a build maintainer comment on Richard's analysis in bug 35248? CCing Paolo again. -- jwakely dot g

[Bug c++/23194] Unhelpful diagnostic for incorrect pointer-to-member function syntax

2008-06-24 Thread jwakely dot gcc at gmail dot com
--- Comment #14 from jwakely dot gcc at gmail dot com 2008-06-24 20:46 --- Fixed for 4.4 -- jwakely dot gcc at gmail dot com changed: What|Removed |Added

[Bug libstdc++/36949] [C++0x] make_shared does not initialize enable_shared_from_this' internal shared_count

2008-07-28 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2008-07-28 20:27 --- (In reply to comment #2) > Jonathan, can you have a look? If you can confirm the issue, is it just matter > of adding a call to __enable_shared_from_this_helper(_M_refcount, _M_ptr, > _M_ptr) to __s

[Bug libstdc++/36962] [C++0x] Add constructors / assignment operators from unique_ptr to shared_ptr

2008-07-29 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2008-07-29 19:24 --- I will try to look at it next week some time, but don't have much spare time in the near future, so don't hold your breath for me to do it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36962

[Bug libstdc++/36962] [C++0x] Add constructors / assignment operators from unique_ptr to shared_ptr

2008-07-30 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2008-07-30 21:27 --- Created an attachment (id=15979) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15979&action=view) unique_ptr and rvalue-reference updates from WP I'm going to be offline until next week so h

<    1   2   3