I don't have a testcase but gimplify_expr_stmt produces warnings:
            warning (OPT_Wextra, "statement with no effect");
...
      else if (warn_unused_value)
        warn_if_unused_value (stmt, input_location);


-- 
           Summary: gimplify_expr_stmt in cp-gimplifer.c does warnings
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 24222
             nThis:


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

Reply via email to