Re: g++4.9.2 fails to compile standard C++11 code

2015-03-14 Thread JonY
On 3/14/2015 04:58, Christian Franke wrote: > > Yes. The attached patch for cmath include file would fix this. > > Christian > Hi, I think newlib should be updated instead. Patching a libstdc++ header is something I'd want to avoid. signature.asc Description: OpenPGP digital signature

Re: g++4.9.2 fails to compile standard C++11 code

2015-03-13 Thread Christian Franke
Corinna Vinschen wrote: On Mar 13 09:13, Csaba Raduly wrote: Hi On Thu, Mar 12, 2015 at 10:55 AM, Duncan Roe wrote: On Wed, Mar 11, 2015 at 06:55:16PM -0400, Vlad Gheorghiu wrote: The following code fails to compile under latest cygwin, Windows 7, g++4.9.2. Compiled with g++ -std=c++11 test.

Re: g++4.9.2 fails to compile standard C++11 code

2015-03-13 Thread Corinna Vinschen
On Mar 13 09:13, Csaba Raduly wrote: > Hi > > On Thu, Mar 12, 2015 at 10:55 AM, Duncan Roe wrote: > > On Wed, Mar 11, 2015 at 06:55:16PM -0400, Vlad Gheorghiu wrote: > >> The following code fails to compile under latest cygwin, Windows 7, > >> g++4.9.2. Compiled with g++ -std=c++11 test.cpp. The

Re: g++4.9.2 fails to compile standard C++11 code

2015-03-13 Thread Csaba Raduly
Hi On Thu, Mar 12, 2015 at 10:55 AM, Duncan Roe wrote: > On Wed, Mar 11, 2015 at 06:55:16PM -0400, Vlad Gheorghiu wrote: >> The following code fails to compile under latest cygwin, Windows 7, >> g++4.9.2. Compiled with g++ -std=c++11 test.cpp. The compiler >> complains that std::log2 is not a mem

Re: g++4.9.2 fails to compile standard C++11 code

2015-03-12 Thread Roger Wells
On 03/11/2015 06:55 PM, Vlad Gheorghiu wrote: The following code fails to compile under latest cygwin, Windows 7, g++4.9.2. Compiled with g++ -std=c++11 test.cpp. The compiler complains that std::log2 is not a member of std. #include #include int main() { auto

Re: g++4.9.2 fails to compile standard C++11 code

2015-03-12 Thread Duncan Roe
On Wed, Mar 11, 2015 at 06:55:16PM -0400, Vlad Gheorghiu wrote: > The following code fails to compile under latest cygwin, Windows 7, > g++4.9.2. Compiled with g++ -std=c++11 test.cpp. The compiler > complains that std::log2 is not a member of std. > > #include > #include > > int main

g++4.9.2 fails to compile standard C++11 code

2015-03-11 Thread Vlad Gheorghiu
The following code fails to compile under latest cygwin, Windows 7, g++4.9.2. Compiled with g++ -std=c++11 test.cpp. The compiler complains that std::log2 is not a member of std. #include #include int main() { auto x = std::log2(10); std::cout << x << std