This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36254] [4.2/4.3/4.4 Regression] wrong "control reaches end of non-void function" warning with IF_STMT



------- Comment #14 from jakub at gcc dot gnu dot org  2009-01-11 21:15 -------
Subject: Bug 36254

Author: jakub
Date: Sun Jan 11 21:14:51 2009
New Revision: 143281

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143281
Log:
        PR c++/36254
        * cp-gimplify.c (genericize_if_stmt): Renamed from ...
        (gimplify_if_stmt): ... this.
        (cp_gimplify_expr): Don't handle IF_STMT here.
        (cp_genericize_r): Call genericize_if_stmt for IF_STMT.

        * g++.dg/warn/Wreturn-type-5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wreturn-type-5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]