https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71110

            Bug ID: 71110
           Summary: Failure to detect syntax error with Switch Case
                    statement.
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iamropo at gmail dot com
  Target Milestone: ---

The Bug is Regarding `case value`. I have commented the bug in the program
below.

#include <stdio.h>

int main()
{

 int n = 0;

 switch(n)
 {

  case 1:
    printf("Foo.\n");
    break;


  /* The following Syntax Error is not being detected, i.e no space between    
          'case' & 2 */

  case2:  
    printf("Bar.\n");
    break;

  default:
    printf("Bruhh.\n");
   }

  return 0;

 }


Thanks, 
Hage Ropo

Reply via email to