]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/g++.dg/overload/defarg1.C
re PR c++/24163 (dependent Base class scope examined during unqualified name lookup...
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / overload / defarg1.C
index 44de733736f84cc4596ade89bcad20b1ba8f42a9..5d34a457dc28f11dabfa9bb23d23c0d614560d92 100644 (file)
@@ -3,7 +3,9 @@
 template<typename T>
 int foo (T t, int = foo(T()));
 
+struct A { };
+
 int main()
 {
-  foo(0);                      // { dg-error "default argument" }
+  foo(A());                    // { dg-error "default argument" }
 }