Re: C++14 template code working in GCC 5.1 stops working in 5.2 and 5.3

2016-01-10 Thread Yongwei Wu
On 10 January 2016 at 23:29, Jonathan Wakely wrote: > On 10 January 2016 at 14:55, Yongwei Wu wrote: >> Hi GCC gurus, >> >> I have an implementation of Y Combinator in C++, which works in GCC >> 4.9 to 5.1 as well as Clang 3.5 (in C++14 mode). It stops working in &

C++14 template code working in GCC 5.1 stops working in 5.2 and 5.3

2016-01-10 Thread Yongwei Wu
Hi GCC gurus, I have an implementation of Y Combinator in C++, which works in GCC 4.9 to 5.1 as well as Clang 3.5 (in C++14 mode). It stops working in GCC 5.2 and 5.3. I cannot really whether it is a GCC bug or not, but it looks like GCC is being too eager in template instantiation. Would you plea

C++ Instantiation Problem

2015-06-02 Thread Yongwei Wu
ng does not complain at the code, and I cannot see why the instantiation has to be done manually. Is it a GCC bug? Or is the code not conformant to the C++14 standard in any way? Thanks and best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/