On Fri, 28 Jun 2013, Marc Glisse wrote:
It seems better to do the following, so we still test for extra warnings:-template <class T> void g (T) {}-template <class T> auto g (T x) -> typename enable_if<sizeof(__builtin_shuffle(x,x))!=2>::type {}+template <class T> void g (T const&) {}+template <class T> auto g (T const& x) -> typename enable_if<sizeof(__builtin_shuffle(x,x))!=2>::type {}
I committed that as an obvious fix of my testcase. 2013-06-28 Marc Glisse <[email protected]> PR c++/57509 * g++.dg/ext/pr57509.C: Pass vectors by reference to avoid warnings. -- Marc Glisse
