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.
- 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
note: this is the problem for C (not C++) files
I downgrade this bug because user can edit 'fori', 'forj' abbreviation for himself or create new 'cfori', 'cforj' abbreviation in 'Tools|Options' menu.
fixed as part of IZ#97549: C/C++ abbreviations in CND pack should be more useful
verified in NetBeans IDE Dev (Build 200802270005)