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++/16663] New: Poor error recovery


void Foo(misspelled a, char b, bool c, float f);

gets you

foo.cc:1: error: variable or field `Foo' declared void
foo.cc:1: error: `misspelled' was not declared in this scope
foo.cc:1: error: expected primary-expression before "char"
foo.cc:1: error: expected primary-expression before "bool"
foo.cc:1: error: expected primary-expression before "float"
foo.cc:1: error: initializer expression list treated as compound expression

-- 
           Summary: Poor error recovery
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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