[Bug c++/15485] [tree-ssa] The C++ front-end generates a lot of (void) casts for statements

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 10 05:42:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-10 05:42 -------
(In reply to comment #8)
> A more reduced testcase:
This comes from finalize_nrv_r.  There might be a better way of doing that.
      else
        init = build_empty_stmt ();
      SET_EXPR_LOCUS (init, EXPR_LOCUS (*tp));
      *tp = init;

Maybe a better walker which then is able to remove statements in a STATEMENT_LIST.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15485



More information about the Gcc-bugs mailing list