http://llvm.org/bugs/show_bug.cgi?id=10759
Anton Korobeynikov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #1 from Anton Korobeynikov <[email protected]> --- Does not crash for me anymore: $ clang++ defarg1.C defarg1.C:4:21: error: call to function 'foo' that is neither visible in the template definition nor found by argument-dependent lookup int foo (T t, int = foo(T())); ^ defarg1.C:8:3: note: in instantiation of default function argument expression for 'foo<int>' required here foo(0); // { dg-error "default argument" } ^ defarg1.C:4:5: note: 'foo' should be declared prior to the call site int foo (T t, int = foo(T())); ^ 1 error generated. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
