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

2007-08-03 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2007-08-03 23:30 --- re-confirmed with latest 4.3 snapshot: tests$ ~/gcc/4.x/bin/g++ -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /home/jwakely/src/gcc-4.3-20070727/configure --prefix=/home/jwakely/gcc

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

2007-10-02 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2007-10-02 23:28 --- Created an attachment (id=14287) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14287&action=view) add example to diagnostic This adds ", e.g. '(...->*pmf) (...)'" to the

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

2007-10-02 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2007-10-02 23:54 --- (From update of attachment 14287) >Index: gcc/cp/typeck.c >=== >--- gcc/cp/typeck.c(revision 128908) >+++ gcc/cp/typeck.c(

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

2007-10-02 Thread jwakely dot gcc at gmail dot com
--- Comment #8 from jwakely dot gcc at gmail dot com 2007-10-02 23:59 --- Yes, it looks better with spaces, thanks. I think ->* still looks clearer than .* even with the spaces. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23194

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

2007-10-02 Thread jwakely dot gcc at gmail dot com
--- Comment #10 from jwakely dot gcc at gmail dot com 2007-10-03 00:16 --- Andrew, unfortunately that format fails with -Werror I'm testing now, but my machine's developed a hardware problem and keeps segfaulting, which makes it hard to build GCC let alone run the

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

2007-10-02 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2007-10-03 00:31 --- I'm bootstrapping mainline as of yesterday (r128908) with gcc version 4.1.2 20070626 (Red Hat 4.1.2-13) The format I tried was: error ("must use %<.*%> or %<->*%>

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

2008-08-05 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2008-08-05 19:06 --- (In reply to comment #5) > Hi again. I have essentially only one substantive comment: can you double > check > the implementation is correct vs 20.7.12.2.1/37 ? I believe the use of std::ref was to m

[Bug bootstrap/37277] New: bootstrap failure with --with-dwarf2 on Solaris 10

2008-08-29 Thread jwakely dot gcc at gmail dot com
us: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com GCC build triplet: sparc-sun-solaris2.10 GCC host triplet: sparc-sun-solaris2.10 GCC target tri

[Bug bootstrap/37277] bootstrap failure with --with-dwarf2 on Solaris 10

2008-08-29 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2008-08-29 13:11 --- Created an attachment (id=16161) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16161&action=view) gcc/gtyp-input.list Here is the generated file with the duplicate entry -- http://gcc.gnu.org/b

[Bug bootstrap/37277] bootstrap failure with --with-dwarf2 on Solaris 10

2008-08-29 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2008-08-29 13:36 --- I think this is a regression against 4.2.2 as I have working compilers for sparc-sun-solaris2.10 and sparc64-sun-solaris2.10 which were both configured with --with-dwarf2 (although I didn't build them myse

[Bug bootstrap/37277] bootstrap failure with --with-dwarf2 on Solaris 10

2008-09-01 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2008-09-01 08:39 --- Yes, I realise that, but it's still documented and it was apparently harmless with 4.2.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37277

[Bug libstdc++/37351] New: std::result_of requires nested template

2008-09-03 Thread jwakely dot gcc at gmail dot com
Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37351

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

2008-09-03 Thread jwakely dot gcc at gmail dot com
--- Comment #9 from jwakely dot gcc at gmail dot com 2008-09-03 15:00 --- I have another patch ready for this, but it doesn't work with unique_ptr where D is a reference type, due to Bug 37351 e.g. constructing from unique_ptr&> fails to compile because std::refer

[Bug libstdc++/37351] std::result_of requires nested template

2008-09-03 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2008-09-03 15:04 --- Agreed, the reason I reported this is that it causes problems with my work on Bug 36962 because std::reference_wrapper uses result_of -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37351

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

2008-09-03 Thread jwakely dot gcc at gmail dot com
--- Comment #11 from jwakely dot gcc at gmail dot com 2008-09-03 15:08 --- Yes, the problem is with result_of, not my changes to shared_ptr. It will work with unique_ptr if a type D::result_type exists, so I'll submit the new patch tonight. -- http://gcc.gnu.org/bug

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

2008-09-03 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2008-09-03 23:43 --- Created an attachment (id=16216) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16216&action=view) updated patch this replaces tr1_impl/boost_shared_ptr.h with separate files in tr1/ and bits/ as

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

2008-09-04 Thread jwakely dot gcc at gmail dot com
--- Comment #15 from jwakely dot gcc at gmail dot com 2008-09-04 13:52 --- Sure, I can do that -- 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-09-04 Thread jwakely dot gcc at gmail dot com
--- Comment #17 from jwakely dot gcc at gmail dot com 2008-09-04 21:39 --- Created an attachment (id=16226) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16226&action=view) new patch As requested, except I didn't split tr1_impl/boost_sp_counted_base.h My preference

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

2008-09-04 Thread jwakely dot gcc at gmail dot com
--- Comment #19 from jwakely dot gcc at gmail dot com 2008-09-04 22:40 --- fixed for 4.4 -- jwakely dot gcc at gmail dot com changed: What|Removed |Added

[Bug libstdc++/37351] [c++0x] std::result_of requires nested template

2008-09-05 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2008-09-05 10:23 --- this seems pretty easy to fix with decltype and variadic templates, patch coming soon ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37351

[Bug libstdc++/37351] [c++0x] std::result_of requires nested template

2008-09-08 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2008-09-08 10:36 --- I've got result_of working but am also fixing up reference_wrapper and __invoke() to forward correctly using rvalue-references. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37351

[Bug c++/34158] Template delete doesn't call if exception thrown in constructor

2008-11-01 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2008-11-01 16:18 --- This is a compile-time test which should fail because undef cannot be instantiated, but the deallocation function is not used. #include template class undef; struct A { A() { throw 1; } }; template class

[Bug libstdc++/24803] [c++0x] reference_wrapper and pointers to member functions

2008-11-04 Thread jwakely dot gcc at gmail dot com
--- Comment #9 from jwakely dot gcc at gmail dot com 2008-11-05 01:09 --- Created an attachment (id=16625) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16625&action=view) update result_of and reference_wrapper In the current draft, reference_wrapper invocation requires C

[Bug libstdc++/37351] [c++0x] std::result_of requires nested template

2008-11-04 Thread jwakely dot gcc at gmail dot com
--- Comment #9 from jwakely dot gcc at gmail dot com 2008-11-05 01:12 --- I've added a patch in bug 24803, comment 9 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37351

[Bug libstdc++/37351] [c++0x] std::result_of requires nested template

2008-11-04 Thread jwakely dot gcc at gmail dot com
--- Comment #11 from jwakely dot gcc at gmail dot com 2008-11-05 02:08 --- Fixed for 4.4 -- jwakely dot gcc at gmail dot com changed: What|Removed |Added

[Bug libstdc++/24803] [c++0x] reference_wrapper and pointers to member functions

2008-11-04 Thread jwakely dot gcc at gmail dot com
--- Comment #14 from jwakely dot gcc at gmail dot com 2008-11-05 02:54 --- the problem is due to bug 35569 - I'll have to revert my patch until I can fix that properly -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24803

[Bug libstdc++/23888] should debug mode throw instead of assert?

2008-03-08 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2008-03-08 13:41 --- (In reply to comment #2) > Finding this spot, > however, is the sole purpose of offering the debug mode libstdc++. I agree with every word of Wolfgang's, but this is the key point. User code would

[Bug libstdc++/33628] unary_function and pointer_to_unary_function issues with void template arguments

2008-03-08 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2008-03-08 15:25 --- (In reply to comment #0) > // 1 > #include > > typedef int value_type; > > // void argument type > template class std::unary_function; eurgh, even more of an abomination than int f(v

[Bug libstdc++/31247] std::vector::iterator::value_type is accessible

2008-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2008-03-09 15:51 --- Created an attachment (id=15284) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15284&action=view) make nested iterator typedefs private in debug mode It's "accepts implementation-defi

[Bug libstdc++/31247] std::vector::iterator::value_type is accessible

2008-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #8 from jwakely dot gcc at gmail dot com 2008-03-09 15:52 --- Created an attachment (id=15285) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15285&action=view) new test -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31247

[Bug libstdc++/39407] New: Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
assume with 4.4 too. -- Summary: Parse error in when user declares template-name c Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned a

[Bug libstdc++/39407] Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2009-03-09 14:25 --- (In reply to comment #2) > FWIW, if I use v3 together with the Intel C++ compiler, it builds... > That's interesting, Comeau's online compiler gives a very similar error to gcc 4.3.2 -- ht

[Bug libstdc++/39407] Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2009-03-09 15:19 --- Well, the as-if rule allows (x.c < ((y.c)) too of course. I could be wrong and the compiler should parse it ok, I haven't thought about it very hard. The same problem occurs here, although it&#

[Bug libstdc++/39407] Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2009-03-09 15:20 --- (In reply to comment #5) > Well, the as-if rule allows (x.c < ((y.c)) too of course. bah - it would allow it if I could type the right number of closing parentheses! -- http://gcc.gnu.org/bu

[Bug c++/39407] Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #10 from jwakely dot gcc at gmail dot com 2009-03-09 16:08 --- reduced: template struct x; template struct y { int x; }; template bool operator<(const y& l, const y& r) { return l.x < r.x; } It doesn't happen except in a template context, so it

[Bug c++/39407] Parse error in when user declares template-name c

2009-03-09 Thread jwakely dot gcc at gmail dot com
--- Comment #14 from jwakely dot gcc at gmail dot com 2009-03-09 18:13 --- aha, on PR 11814 you mention PR 20308 which is the same. Thanks, Andrew! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39407

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

2009-03-11 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2009-03-11 14:29 --- Created an attachment (id=17438) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17438&action=view) remove support for other compilers this patch re-implements the parallel mode's atomic operati

[Bug libstdc++/39676] std::result_of doesn't work

2009-04-07 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2009-04-07 14:45 --- I think you have the syntax wrong, if you want to know the return type of a function type (or function pointer, or function reference) you need to say: result_of::type what you probably want is: typedef

[Bug libstdc++/39676] std::result_of doesn't work

2009-04-07 Thread jwakely dot gcc at gmail dot com
--- Comment #9 from jwakely dot gcc at gmail dot com 2009-04-07 14:51 --- This is not a bug in C++0x either. The spec is: Given an rvalue fn of type Fn and values t1, t2, ..., tN of types T1, T2, ..., TN in ArgTypes, respectively, the type member is the result type of the expression

[Bug libstdc++/39676] std::result_of doesn't work

2009-04-07 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2009-04-07 15:40 --- See what I wrote at http://gcc.gnu.org/ml/libstdc++/2008-09/msg00124.html under point 3) You want this: typename std::result_of< decltype(&traits::restore) (S*) >::type Paolo, let's close thi

[Bug libstdc++/39676] std::result_of doesn't work

2009-04-07 Thread jwakely dot gcc at gmail dot com
--- Comment #13 from jwakely dot gcc at gmail dot com 2009-04-07 15:42 --- (In reply to comment #12) > typename std::result_of< decltype(&traits::restore) (S*) >::type Oops, that should be S& not S* It's not perfect, but for this case std::result_of works if yo

[Bug libstdc++/39909] New: non-TLS version of std::call_once causes terminate

2009-04-26 Thread jwakely dot gcc at gmail dot com
Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com http://gcc.gnu.org/bugzilla/sh

[Bug libstdc++/39909] non-TLS version of std::call_once causes terminate

2009-04-26 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2009-04-26 17:40 --- Created an attachment (id=17707) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17707&action=view) fix call_once without breaking ABI Fix call_once to not use the global lock object, but retain the

[Bug libstdc++/39909] non-TLS version of std::call_once causes terminate

2009-04-26 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2009-04-26 18:06 --- Created an attachment (id=17709) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17709&action=view) use GLIBCXX_3.4.12 version for new symbols same patch again, with the new symbols using a new vers

[Bug libstdc++/39909] non-TLS version of std::call_once causes terminate

2009-04-26 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2009-04-26 21:39 --- (In reply to comment #4) > same patch again, with the new symbols using a new version and testsuite > changes included passes all regression tests both with and without tls -- http://gcc.gnu.org/bu

[Bug c++/40007] New: specialization causes access problem in primary template

2009-05-02 Thread jwakely dot gcc at gmail dot com
tus: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007

[Bug c++/30111] Value-initialization of POD base class doesn't initialize members

2007-06-17 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2007-06-18 01:36 --- Confirmed on x86-linux, sparc-solaris and ppc-AIX so I've removed the Target. Also verified that valgrind shows the uninitialised memory reads. This bug breaks common idioms like: template s

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

2007-07-09 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2007-07-09 10:30 --- I'm seeing the same with this configuration: Using built-in specs. Target: x86_64-redhat-linux Configured with: $SRCS/gcc/gcc-4.1.1/configure --prefix=$DEST/gcc/4.1.1-64bit --with-gnu-as --with-as=$DEST/bin

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

2007-07-09 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2007-07-09 10:35 --- In reply to comment #2: actually, the sparc64-sun-solaris2.8 problem could be slightly different and I can't confirm it now -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32415

[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual

2010-02-08 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2010-02-08 12:35 --- n3000 says "Only special member functions may be explicitly defaulted, and the implementation shall define them as if they had implicit definitions." An implicit destructor is not virtual. http:

[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual

2010-02-08 Thread jwakely dot gcc at gmail dot com
--- Comment #8 from jwakely dot gcc at gmail dot com 2010-02-08 13:56 --- (In reply to comment #6) > Interesting. Thus I get Core 906 [Ready] as meaning that this snippet is just > illegal, and should be rejected, in other terms, this is an accept invalid, > right? > Ye

[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual

2010-02-08 Thread jwakely dot gcc at gmail dot com
--- Comment #10 from jwakely dot gcc at gmail dot com 2010-02-08 14:00 --- (In reply to comment #7) > > There is a thread in comp.std.c++ about this. Yes, but I don't think anyone's mentioned core issue 906, which makes all the arguments rather moot. Read that resol

[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual

2010-02-08 Thread jwakely dot gcc at gmail dot com
--- Comment #11 from jwakely dot gcc at gmail dot com 2010-02-08 14:04 --- (In reply to comment #9) > I'm not sure to understand your last comment (sorry I 'm not a natural english > speaker). Do you mean that virtual ~A() = default; should be an error ? If we Yes. GC

[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual

2010-02-08 Thread jwakely dot gcc at gmail dot com
--- Comment #16 from jwakely dot gcc at gmail dot com 2010-02-08 15:10 --- (In reply to comment #15) > Destroying an object from a base class pointer whose destructor is not virtual > is an undefined behaviour according to the standard. I tend to think that > silently rem

[Bug libstdc++/43005] Segmentation fault(not always) while running binary which has gcc and g++ compiled shared object files

2010-02-09 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2010-02-09 10:49 --- In addition to what Paolo said: You're using -lpthread, did you also use the relevant preprocessor options? For powerpc -pthread does everything you need. That code doesn't qualify the names from nam

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

2010-02-09 Thread jwakely dot gcc at gmail dot com
--- Comment #25 from jwakely dot gcc at gmail dot com 2010-02-09 18:28 --- This is now LWG 1315 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-01 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2010-03-01 15:05 --- OK, I'm back and have had time to look at this. I vaguely remember noticing that the assignment and the deleter invocation happened in the wrong order in our implementation, but I must have forgotten about

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-01 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-03-01 16:23 --- I think it should be fixed for 4.5 and then updated when nullptr is available. I assume that LWG 834 will be accepted in some form, so we will need an update at some point anyway, to use nullptr in release and

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-01 Thread jwakely dot gcc at gmail dot com
--- Comment #8 from jwakely dot gcc at gmail dot com 2010-03-01 16:35 --- Actually, we could just use pointer() everywhere, which would work today and would be equivalent to using nullptr, assuming the current proposed resolution of 834 or something similar. I would be very surprised

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-02 Thread jwakely dot gcc at gmail dot com
--- Comment #16 from jwakely dot gcc at gmail dot com 2010-03-02 11:41 --- I might have caused a regression with this change: FAIL: 30_threads/promise/members/set_value3.cc execution test WARNING: program timed out. Will investigate later today... -- http://gcc.gnu.org/bugzilla

[Bug libstdc++/43183] std::unique_ptr::reset() does not conform to N3035.

2010-03-02 Thread jwakely dot gcc at gmail dot com
--- Comment #17 from jwakely dot gcc at gmail dot com 2010-03-02 12:44 --- The 30_threads/promise/members/set_value3.cc test had a latent bug which was revealed by the unique_ptr fix. I'll change the test. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43183

[Bug c++/43646] New: decltype and std::integral_constant

2010-04-05 Thread jwakely dot gcc at gmail dot com
n: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43646

[Bug c++/43646] decltype and std::integral_constant

2010-04-05 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-04-05 11:39 --- Is this related to DR 743 or 950, and so likely to get fixed when N3049 is supported? -- jwakely dot gcc at gmail dot com changed: What|Removed |Added

[Bug c++/42350] The attached file causes an internal compiler error

2009-12-11 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2009-12-11 09:30 --- there's no ICE with 4.1.2 or 4.4.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42350

[Bug c++/36587] Feature: add warning for constructor call with discarded return.

2009-12-11 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2009-12-11 10:39 --- (In reply to comment #4) > > But I'm not convinced that doing this is always a mistake. > > Since we don't care about the object, we must care about the constructor side > effec

[Bug libstdc++/21772] exception safety testing

2009-12-16 Thread jwakely dot gcc at gmail dot com
--- Comment #13 from jwakely dot gcc at gmail dot com 2009-12-16 11:14 --- (In reply to comment #12) > Some are really puzzling... Hard to believe something is wrong in , for > example. I haven't looked into it, but the problem in array could be bug 41449 -- http://

[Bug libstdc++/42198] [C++0x] Using std::thread without -pthread causes immediate crash

2009-12-17 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2009-12-17 09:43 --- Looks sensible to me, although maybe "resource_unavailable_try_again" is a better error: resource_unavailable_try_again — the system lacked the necessary resources to create another thread, or the syst

[Bug libstdc++/40497] [C++0x] troubles with std::next / std::prev declarations

2009-12-17 Thread jwakely dot gcc at gmail dot com
--- Comment #23 from jwakely dot gcc at gmail dot com 2009-12-17 11:55 --- I can't see any 100% reliable way to prevent this problem, because the catch-all specialisation of iterator_traits can be instantiated with non-iterator types. We could try tricks like this to restric

[Bug libstdc++/40497] [C++0x] troubles with std::next / std::prev declarations

2009-12-17 Thread jwakely dot gcc at gmail dot com
--- Comment #24 from jwakely dot gcc at gmail dot com 2009-12-17 12:01 --- Although that breaks if any of the iterator-like operators exists but is not accessible - I think concepts would have worked in that case, but I'm not sure -- http://gcc.gnu.org/bugzilla/show_bug.c

[Bug libstdc++/40497] [C++0x] troubles with std::next / std::prev declarations

2009-12-17 Thread jwakely dot gcc at gmail dot com
--- Comment #27 from jwakely dot gcc at gmail dot com 2009-12-17 12:23 --- ha! std::next would want is_input_iterator and std::prev would ideally want is_bidi_iterator, so maybe more than one trait -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497

[Bug c++/35669] NULL (__null) not considered different from 0 with C++

2009-12-22 Thread jwakely dot gcc at gmail dot com
--- Comment #15 from jwakely dot gcc at gmail dot com 2009-12-22 10:36 --- (In reply to comment #14) > > so [implicit] conversion from NULL to int is OK. > > That's true where NULL is defined as 0 (or eg 0L), but that's not the only > permitted definition

[Bug libstdc++/42201] [C++0x] std::vector>::push_back fails

2009-12-22 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2009-12-22 10:48 --- I'm planning to send a patch for feedback in the next 48 hours, including everything except atomic_future, because I think we need to implement [util.smartptr.shared.atomic] to support atomic_future --

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2010-01-06 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2010-01-06 10:42 --- The linker error alone doesn't make the root cause obvious, but it's a fairly well known and well documented problem: http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.10

[Bug c++/17920] add __attribute__((reimpl)) as a replacement for the (optional) virtual keyword for reimplementations of virtual functions

2010-01-06 Thread jwakely dot gcc at gmail dot com
--- Comment #13 from jwakely dot gcc at gmail dot com 2010-01-06 11:58 --- See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2928.htm which is part of the current C++ draft Related to Bug 31397 and Bug 36848 - we don't need three open bugs requesting similar features.

[Bug libstdc++/42573] [C++0x] shrink_to_fit() missing

2010-01-08 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2010-01-08 10:05 --- It would be conforming to add the function with an empty body ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42573

[Bug c++/42687] The prevention of ADL with the help of parentheses doesn't work

2010-01-11 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-11 18:37 --- This was changed by http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#705 and didn't appear in the working draft until November. It's hardly surprising that a compiler released in Octob

[Bug libstdc++/24803] [c++0x] reference_wrapper and pointers to member functions

2010-01-12 Thread jwakely dot gcc at gmail dot com
--- Comment #21 from jwakely dot gcc at gmail dot com 2010-01-12 17:19 --- (In reply to comment #20) > I'd like only to make sure we don't > forget about the issue with pointers to member functions: is there a DR open > already? It's been raised on the lib r

[Bug libstdc++/42733] Use of std::string with threads causes process hanging following a fork()

2010-01-13 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2010-01-13 18:23 --- Can you attach a debugger or produce a core file to see where it hangs? In any case, 3.4.6 is unsupported now and it seems to work OK on 4.4.2 Unless you can show where it hangs and/or reproduce it on a current

[Bug c++/42737] [c++0x] error returning a lambda function

2010-01-14 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2010-01-14 10:21 --- Obviously it shouldn't ICE, but I don't think this code is valid: the type of a lambda expression is a class type not a function pointer, and I don't think it's convertible to a function p

[Bug c++/42737] [c++0x] error returning a lambda function

2010-01-14 Thread jwakely dot gcc at gmail dot com
--- Comment #6 from jwakely dot gcc at gmail dot com 2010-01-14 12:30 --- (In reply to comment #5) > Does it matter that lambdas with no-capture are special, per n2989? (also see > http://gcc.gnu.org/ml/gcc-patches/2009-10/msg01690.html) > ah yes, that would make it valid!

[Bug c++/42743] Inexplicable error message with constructing SIMD values

2010-01-14 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-14 12:36 --- (In reply to comment #0) > vec_t tmp2 = {}; // Causes warnings about uninitialized members in > myvec The warning doesn't smean it's uninitialized, just that there are not initializers

[Bug libstdc++/42761] std::bind doesn't work for simple class types

2010-01-15 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-15 18:34 --- OK, I'll revert it all tomorrow if necessary -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42761

[Bug c++/42780] Incorrect warning message

2010-01-18 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2010-01-18 11:23 --- N.B. the Host/Target/Target fields are meant for the "host triplet" such as i686-pc-cygwin Feel free to include the snapshot date and OS details in the main report, but putting them in the Host field

[Bug libstdc++/42201] [C++0x] std::vector>::push_back fails

2010-01-20 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-01-20 14:38 --- I was going to ask you the same thing :-) I would like to update for 4.5, I'll send the patch when I get home in a few hours -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42201

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #2 from jwakely dot gcc at gmail dot com 2010-01-21 10:35 --- Yes, it's a defect (a concepts hangover) - the example is invalid according to the async spec. I pointed it out to Lawrence and he's dealing with it for the next draft. I implemented async as define

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #5 from jwakely dot gcc at gmail dot com 2010-01-21 10:42 --- (In reply to comment #2) > Yes, it's a defect (a concepts hangover) - the example is invalid according to > the async spec. I pointed it out to Lawrence and he's dealing with it for the > nex

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-01-21 10:54 --- btw, Jack, thanks for testing it. Your feedback is appreciated -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819

[Bug c++/42822] ice on invalid code in joust

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2010-01-21 11:07 --- this is a dup of Bug 42701 and so should not ICE in a newer snapshot -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42822

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #10 from jwakely dot gcc at gmail dot com 2010-01-21 16:08 --- (In reply to comment #8) > > Is there an easy workaround I can apply locally for this? I tried replacing > all > instances of `typename _Fn::result_type` with `typename > result_of<_Fn(_A

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2010-01-21 16:14 --- Aha - I see what's happening. As well as changing _Fn:result_type everywhere please change line 1327 in to this: return async<_Fn, _Args...>(launch::any, std::forward<_Fn>(__fn), The pro

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #13 from jwakely dot gcc at gmail dot com 2010-01-21 16:19 --- (In reply to comment #12) > Paolo, this is the problem I had with std::bind, I think there might be a > larger problem with overloaded variadic template functions ... I'll think > about > i

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #15 from jwakely dot gcc at gmail dot com 2010-01-21 16:28 --- (In reply to comment #14) > Anyway, we also have the residual nit that I had to change to public the > explicit constructor future(const __state_type&). I suppose isn't a big > issue...

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

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #20 from jwakely dot gcc at gmail dot com 2010-01-21 18:20 --- Eurgh - yes, we should disable one overload. I'm getting less and less happy about overloaded variadics. I'll look into it later. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819

[Bug c++/5458] address of overloaded template function as argument for template

2010-01-21 Thread jwakely dot gcc at gmail dot com
--- Comment #16 from jwakely dot gcc at gmail dot com 2010-01-21 19:00 --- Shouldn't it get the same error as for this case? template T foo() { return T(); } int main() { &foo; } That example can be made valid like so: int (*pf)() = &foo; Which demo

[Bug c++/42824] c++ compilation complains about error: call of overloaded

2010-01-22 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2010-01-22 11:50 --- Is Boost.MPL needed? I haven't tried, but it looks like you could remove mpl entirely as it isn't directly involved where the error occurs. That would make the testcase MUCH smaller -- http://g

[Bug c++/42840] const-ref argument in a variadic template arglist is mishandled

2010-01-22 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2010-01-22 12:00 --- N.B. duplicate of Bug 14404 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42840

[Bug c++/42871] g++: Internal error: Segmentation fault (program cc1plus)

2010-01-26 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-26 12:24 --- Severity should be "normal" and a testcase is needed to reproduce the problem. -- jwakely dot gcc at gmail dot com changed: What|Removed

[Bug c++/42877] ICE when checking the type of a lambda

2010-01-26 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2010-01-26 17:29 --- probably a dup of Bug 42082 or Bug 42737 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42877

[Bug c++/42877] [C++0x] ICE when checking the type of a lambda

2010-01-26 Thread jwakely dot gcc at gmail dot com
--- Comment #4 from jwakely dot gcc at gmail dot com 2010-01-26 18:07 --- I assume the original version is also intended to work with non-empty captures, when operator() is non-static -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42877

[Bug c++/42880] trunk does not compile boost MPL

2010-01-27 Thread jwakely dot gcc at gmail dot com
--- Comment #39 from jwakely dot gcc at gmail dot com 2010-01-27 18:15 --- looks as though the .ii was created using -std=c++0x and then the compiler output obtained by compiling it without -std=c++0x that's never going to work -- http://gcc.gnu.org/bugzilla/show_bug.c

<    1   2   3   >