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 #33 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2011-11-16 09:04:40 UTC ---
> Not a bug, enum foo can have other values except e_1.
> 
> What happens if you call bar( (foo)1 ) ?

sorry for noise :(
You are right - no error in c#31


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