On Fri, Aug 4, 2017 at 1:32 PM, Paolo Carlini <paolo.carl...@oracle.com> wrote:

> About the exact wording, I'm a little puzzled, because, besides the
> "implicit" nit, the "copy-inizialization" already occurs in two other places
> in that function, in the preceding:
>
>   if (elided && !cands)
>     {
>       error ("cannot deduce template arguments for copy-initialization"
>          " of %qT, as it has no non-explicit deduction guides or "
>          "user-declared constructors", type);
>       return error_mark_node;
>     }
>
> and in the following:
>
>       if (elided)
>     inform (input_location, "explicit deduction guides not considered "
>         "for copy-initialization");
>
> and now I'm wondering which, if any, should be also removed?!? Both? Can you
> help me about that?
>
> Thanks,
> Paolo.

These messages are only emitted when elided == true, which, if I'm
reading the code correctly, is only the case when you are in
copy-initialization context (and have skipped at least one explicit
guide).

Reply via email to