[cfe-commits] [PATCH] Fix for CXXConstructExpr printing when implicit default argument is used.
Dmitri Gribenko
gribozavr at gmail.com
Sun Jan 27 13:29:28 PST 2013
On Sun, Jan 27, 2013 at 11:10 PM, Will Wilson <will at indefiant.com> wrote:
> Hi All,
>
> Currently the s_foo variable below:
>
> struct DefaultArgClass
> {
> DefaultArgClass(int a = 1) {}
> };
>
> static DefaultArgClass s_foo;
>
> Will be printed as:
>
> static DefaultArgClass s_foo();
>
> This is due to the default argument not being correctly determined as
> implicit. The fix and test case are attached for review (and commit if it
> LGTY).
Thank you, committed r173630.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list