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 249746 - inaccuracy tests: parser fails on errno
Summary: inaccuracy tests: parser fails on errno
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 10:24 UTC by soldatov
Modified: 2015-02-25 11: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 2015-01-12 10:24:42 UTC
Test failed. Expected: 21 errors, Real: 37
Such code (see LLVM34/llvm/lib/Support/Unix/Path.inc too) breaks parser:

#define _REENTRANT
#include <errno.h>
// #define	errno (*(___errno()))

struct error_code {
    error_code(int a, int b) {}
};

int a() {
    return 0;
}

int main() {
    error_code ec(errno, a());
    return 0;
}
Comment 1 petrk 2015-01-15 18:05:30 UTC
More simple test case:

struct AAA {
    AAA(int, int);
};

int foo();

int boo() {
    AAA a((foo()), foo());
}
Comment 3 Quality Engineering 2015-01-22 03:58:43 UTC
Integrated into 'main-silver', will be available in build *201501220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b89fdef1f6c4
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixing #249746 - inaccuracy tests: parser fails on errno
-- small fix for indentation
Comment 4 soldatov 2015-02-24 11:13:59 UTC
verified in trunk

>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201502240532) (#d6aa48dbbbfb)
Comment 5 soldatov 2015-02-25 11:33:58 UTC
verified in NetBeans IDE 8.0.2 (Build 201502242207)