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 77374 - "fori" and "forj" abbreviations wrong for gcc compiler
Summary: "fori" and "forj" abbreviations wrong for gcc compiler
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 08:12 UTC by soldatov
Modified: 2008-02-27 09:32 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 2006-06-05 08:12:15 UTC
- Create C file
- Type "fori" and press space, type "5" (abbreviation)
==> should appear:
    for (int i = 0; i < 5; i++) {
    }
- Select gcc compiler, and compile project

gcc    -c -g -o build/Debug/GNU-Linux-x86/newmain.o newmain.c
newmain.c: In function `main':
newmain.c:9: error: `for' loop initial declaration used outside C99 mode
make[1]: *** [build/Debug/GNU-Linux-x86/newmain.o] Error 1
Comment 1 Vladimir Voskresensky 2006-10-06 15:02:29 UTC
note: this is the problem for C (not C++) files
Comment 2 soldatov 2006-10-11 16:22:46 UTC
I downgrade this bug because user can edit 'fori', 'forj' abbreviation for
himself or create new 'cfori', 'cforj' abbreviation in 'Tools|Options' menu.
Comment 3 Vladimir Voskresensky 2007-10-09 10:11:59 UTC
fixed as part of IZ#97549: C/C++ abbreviations in CND pack should be more useful
Comment 4 soldatov 2008-02-27 09:32:27 UTC
verified in NetBeans IDE Dev (Build 200802270005)