On 12/30/18 11:08 AM, Marek Polacek wrote:
This PR points out that while we are able to deduce the template arguments
for A{}, we fail for A().
For A{}, the deduction happens in finish_compound_literal:
2789 if (tree anode = type_uses_auto (type))
2790 if (CLASS_PLACEHOLDER_TEMPLATE (anode
This PR points out that while we are able to deduce the template arguments
for A{}, we fail for A().
For A{}, the deduction happens in finish_compound_literal:
2789 if (tree anode = type_uses_auto (type))
2790 if (CLASS_PLACEHOLDER_TEMPLATE (anode))
2791 {
2792 type = do_auto_d