On Tue, Jun 04, 2019 at 08:26:58PM +0100, Nina Dinka Ranns wrote:

ChangeLog entry is missing.

> Index: gcc/cp/pt.c
> ===================================================================
> --- gcc/cp/pt.c       (revision 271709)
> +++ gcc/cp/pt.c       (working copy)
> @@ -26836,7 +26836,7 @@
>  static tree
>  listify_autos (tree type, tree auto_node)
>  {
> -  tree init_auto = listify (auto_node);
> +  tree init_auto = listify (strip_top_quals(auto_node));

There should be space before ( in the function call.

>    tree argvec = make_tree_vec (1);
>    TREE_VEC_ELT (argvec, 0) = init_auto;
>    if (processing_template_decl)
> Index: gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C
> ===================================================================
> --- gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C     (nonexistent)
> +++ gcc/testsuite/g++.dg/cpp0x/initlist-deduce2.C     (working copy)
> @@ -0,0 +1,12 @@
> +// Test for PR63149
> +// { dg-do compile { target c++11 } }
> +
> +#include <initializer_list>
> +
> +const auto r = { 1, 2, 3 };
> +using X = decltype(r);
> +using X = const std::initializer_list<int>;
> +
> +int main()
> +{
> +}

No need for main in dg-do compile test if it is not needed for what the test
wants to test.

        Jakub

Reply via email to