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.0/4.1 Regression] wrong "control reaches end of non-void function" warning


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-29 20:13 -------
Reduced testcase:
struct a{~a();a();};
int GetMetaCombination (int a2)
{
  a bi;
  switch (a2)
  {
    case 1:
      return 18;
      break;//removing this works around the warning
    default:
      return 0;
  }
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-29 20:13:16
               date|                            |
            Summary|another wrong "control      |[4.0/4.1 Regression] wrong
                   |reaches end of non-void     |"control reaches end of non-
                   |function" warning           |void function" warning
   Target Milestone|---                         |4.0.1


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


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