C++ PATCH: PR 26122

Ranjit Mathew rmathew@gmail.com
Wed Apr 12 10:00:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Mitchell wrote:
>  
>    /* Parse the initializer.  */
>    if (is_initialized)
> -    initializer = cp_parser_initializer (parser,
> -					 &is_parenthesized_init,
> -					 &is_non_constant_init);
> +    {
> +      if (declarator->kind == cdk_function
> +	  && declarator->declarator->kind == cdk_id
> +	  && initialization_kind == CPP_EQ)
> +	initializer = cp_parser_pure_specifier (parser);
> +      else
> +	initializer = cp_parser_initializer (parser,
> +					     &is_parenthesized_init,
> +					     &is_non_constant_init);

Bootstrap fails on i686-pc-linux-gnu after this patch as it
results in a "'is_parenthesized_init' may be used uninitialized
in this function" warning and therefore error.

Thanks,
Ranjit.

- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://rmathew.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEPM+7Yb1hx2wRS48RAmo0AJ9Pti61ccz2tpLZqUbz1yVt3ubAVwCgpfXn
o3vqrty/G8LMSgfZy+4FWpU=
=AODk
-----END PGP SIGNATURE-----



More information about the Gcc-patches mailing list