[Bug libstdc++/60592] New: std::array is unable to be brace/universally initialized

2014-03-19 Thread mjbshaw at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60592

Bug ID: 60592
   Summary: std::array is unable to be brace/universally
initialized
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: mjbshaw at hotmail dot com

After a Q&A on StackOverflow[1], it seems there is a bug in libstdc++ (though I
suppose it could be in the gcc front end instead of libstdc++; I'm assuming
libstdc++) that prevents std::array from being brace-initialized. Consider the
following:

std::array a = {1, 2};
std::array b{a}; // error: cannot convert ‘std::array’ to
‘int’ in initialization std::array b{a};
std::array b(a); // works

b{a} is trying to initialize b by creating an initializer list with a in it
[2], as opposed to using brace/universal initialization (which would be
equivalent to b(a), which works as expected [3]).

b{a} ought to work, as far as I understand things, and this error represents a
bug.

[1]:
http://stackoverflow.com/questions/22495624/why-does-this-compile-with-visual-studio-2013-but-not-g-4-8-1
[2]: http://ideone.com/C3NJbA
[3]: http://ideone.com/zjyTr8

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2014-11-03 Thread mjbshaw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740

Michael  changed:

   What|Removed |Added

 CC||mjbshaw at hotmail dot com

--- Comment #12 from Michael  ---
It's good to hear pthread_create should get linked in, but I also need
pthread_join (and any other missing references) to get linked in before I can
do anything useful with std::thread.

I'm hoping this issue will keep getting some more love and attention. I'd be
happy to do any testing for people if that's useful at all.