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

            Bug ID: 59598
           Summary: very simple code using file open for read
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lirex.software at gmail dot com

this portion of the code works ONLY IF the code line "characters_count++;" is
absent:
    characters_count=0;    

    stream = fopen (argv[1],"r");

    while ((c = fgetc(stream)) != EOF) 

    {    
        characters_count++;
        printf("total characters are %s\n", characters_count);
    }

Reply via email to