This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146150 - 'unexpected token: ;' message appears on 'extern int errno;' line
Summary: 'unexpected token: ;' message appears on 'extern int errno;' line
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 10:30 UTC by soldatov
Modified: 2008-09-22 13:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2008-09-04 10:30:33 UTC
See /export/new_projects/perl-5.8.5/ext/SDBM_File/sdbm/sdbm.c file

Other test case:

#include <errno.h>

extern int errno; // <-- unexpected token: ;

int main(int argc, char** argv) {

    return (0);
}
Comment 1 Vladimir Voskresensky 2008-09-05 12:38:49 UTC
This is the last syntax error in Perl, need to be fixed in 6.5
Comment 2 Alexey Vladykin 2008-09-08 10:19:33 UTC
errno is a macro. After expansion we get the following declaration causing parser error:
extern int (*__errno_location ());

See IZ#87792: Parser reports error on declarations with name in parenthesis.
Comment 4 soldatov 2008-09-22 13:33:03 UTC
Verified in 200809211401 build