// RUN: %clang_cc1 -verify -emit-llvm-only %s // rdar://problem/7838962 namespace test0 { template unsigned f0() { return T::MaxSize; // expected-error {{'int' cannot be used prior to '::'}} }; template struct A { void Allocate(unsigned Alignment = f0()) // expected-note {{in instantiation}} {} }; void f1(A x) { x.Allocate(); } }