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++/54046] [4.6/4.7/4.8 Regression] wrong control reaches end of non-void function for switch case with throw and default


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-20 17:27:03 UTC ---
Created attachment 28744
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28744
gcc48-pr54046.patch

Actually, with a langhook we can already at the C++ FE level get rid of the
warning for most of the cases, similarly how we don't warn for
g++.dg/warn/Wreturn-type-7.C (PR20681).


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