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++/20681] [4.4/4.5/4.6/4.7 Regression] wrong "control reaches" warning with switches


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

--- Comment #34 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-13 20:06:25 UTC ---
Author: jason
Date: Fri Jan 13 20:06:16 2012
New Revision: 183161

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183161
Log:
    PR c++/20681
    * semantics.c (finish_break_stmt): Avoid adding an unreachable
    BREAK_STMT.

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


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