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).

- Will.

Attachment: default_arg_constructexpr_fix.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to