// { dg-options "-std=c++0x" } // PR c++/33939 template struct refs_only; template struct refs_only {}; template refs_only foo( T && t) { return refs_only(); } template struct va_refs_only; template struct va_refs_only : refs_only {}; template va_refs_only bar( T &&... t) { return va_refs_only(); } int main() { int j = 0; foo(j); bar(j); // error: invalid use of incomplete type 'struct refs_only' }