Question on visible scope in template declaration

2015-12-14 Thread Carl Lei
am not very sure about the wording. I suspect this to be a GCC bug, but not sure, so asking here first. -- Carl Lei (XeCycle) Department of Physics and Astronomy, SJTU

Re: Question on visible scope in template declaration

2015-12-14 Thread Carl Lei
在 12/15/15 11:09, Andrew Pinski 写道: On Mon, Dec 14, 2015 at 7:01 PM, Carl Lei wrote: Hello list, The following code is rejected by GCC but accepted by Clang: template auto f(T v) -> decltype(g(v)); int g(int) { return 0; } template auto f(T v) -> decltype(g(v)) { return g(