[cfe-dev] C++ default arguments patch, rework Parse-Sema interaction for function parameters
Neil Booth
neil at daikokuya.co.uk
Sun Apr 6 16:18:22 PDT 2008
> +// RUN: clang -fsyntax-only -verify %s
> +void f(int i);
> +void f(int i = 0); // expected-error {{previous definition is here}}
> +void f(int i = 17); // expected-error {{redefinition of default argument}}
Nit: those are really declarations not definitions. The problem may
have been there already.
Neil.
More information about the cfe-dev
mailing list