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++/49729] New: diagnostic cascade


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

           Summary: diagnostic cascade
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: igodard@pacbell.net


This code:

int main() {
    for(int i = 0; i < 10; ++i)
        continue);
    return 0;
    }


got me:

s3:~/ootbc/sim$ g++ foo.cc
foo.cc: In function âint main()â:
foo.cc:3: error: expected â;â before â)â token
foo.cc:3: error: expected primary-expression before â)â token
foo.cc:3: error: expected â;â before â)â token

I got the idea the first time :-)


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