[Bug c++/21713] New: Syntax error

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Sun May 22 20:05:00 GMT 2005


class index {};
int main (){
    index i;
}


gets you:

foo.cc: In function `int main()':
foo.cc:3: error: `index' undeclared (first use this function)
foo.cc:3: error: (Each undeclared identifier is reported only once for each
function it appears in.)
foo.cc:3: error: expected `;' before "i"

-- 
           Summary: Syntax error
           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=21713



More information about the Gcc-bugs mailing list