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 149506 - __attribute__ before static function breaks parser
Summary: __attribute__ before static function breaks parser
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
Depends on:
Blocks: 149512
  Show dependency tree
 
Reported: 2008-10-08 13:30 UTC by Alexey Vladykin
Modified: 2008-12-10 18:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (3.04 KB, patch)
2008-10-08 14:42 UTC, Alexey Vladykin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2008-10-08 13:30:33 UTC
__attribute__((format(printf,0,1))) static void foo() {} // unexpected token: static

__attribute__ ((format(printf,0,1))) void foo() { } // this works fine
Comment 1 Alexey Vladykin 2008-10-08 14:42:58 UTC
Created attachment 71378 [details]
Proposed patch
Comment 2 nnnnnk 2008-10-09 11:59:50 UTC
fixed in clone
Comment 3 Egor Ushakov 2008-10-09 12:59:56 UTC
fix reviewed and approved
Comment 4 soldatov 2008-10-13 11:40:40 UTC
verified in build from endif
Comment 5 Alexey Vladykin 2008-10-15 15:22:03 UTC
Fixed in main: http://hg.netbeans.org/main/rev/dcda4c37714f
Comment 6 dnikitin 2008-12-10 18:45:39 UTC
Verified in NetBeans IDE Dev (Build 200812030201)