[cfe-dev] PATCH: Diagnosing use of C++ default arguments outside of a function declaration
Chris Lattner
clattner at apple.com
Sun May 4 21:35:46 PDT 2008
On May 1, 2008, at 7:51 PM, Doug Gregor wrote:
> The attached patch diagnoses attempts to use C++ default arguments
> outside of a parameter-declaration of a function declaration, e.g.,
>
> void foo(int (*p)(int x = 5)); // ill-formed: p's parameters are not
> allowed to have default arguments
>
> I believe that this wraps up support for default arguments until Clang
> gets templates or member functions. Otherwise, this is a pretty boring
> patch.
Looks great to me, please apply!
-Chris
More information about the cfe-dev
mailing list