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 249752 - inaccuracy tests: regression in Boost
Summary: inaccuracy tests: regression in Boost
Status: RESOLVED WONTFIX
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: 8.1_WAIVER_APPROVED
Depends on:
Blocks:
 
Reported: 2015-01-12 12:46 UTC by soldatov
Modified: 2016-09-05 11:17 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 12:46:26 UTC
Test failed. Expected: 1408 identifiers, Real: 1548
I think we have regressions in such files:

< Name = boost_1_53_0/boost/container/container_fwd.hpp, Invalid identifiers = 0
> Name = boost_1_53_0/boost/container/container_fwd.hpp, Invalid identifiers = 23

< Name = boost_1_53_0/boost/function/function_template.hpp, Invalid identifiers = 7
> Name = boost_1_53_0/boost/function/function_template.hpp, Invalid identifiers = 15

< Name = boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp, Invalid identifiers = 0
> Name = boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp, Invalid identifiers = 15

< Name = boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/reverse_fold.hpp, Invalid identifiers = 0
> Name = boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/reverse_fold.hpp, Invalid identifiers = 15

< Name = boost_1_53_0/boost/io_fwd.hpp, Invalid identifiers = 0
> Name = boost_1_53_0/boost/io_fwd.hpp, Invalid identifiers = 7

< Name = boost_1_53_0/boost/proto/transform/env.hpp, Invalid identifiers = 5
> Name = boost_1_53_0/boost/proto/transform/env.hpp, Invalid identifiers = 11
Comment 1 soldatov 2015-01-12 12:49:37 UTC
in boost_1_53_0/boost/container/container_fwd.hpp we have unresolved T identifier. Sample:

#include <memory>

namespace A {
    template <class T, class Allocator = std::allocator<T> >
    class vector;
}

int main() {
}
Comment 2 soldatov 2015-01-12 15:38:49 UTC
In old builds:
- open boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp file
- Place cursor at 48:43 and Press Ctrl-B
==> cursor jumps to 15:9
- Place cursor at 16:21 and Press Ctrl-B
==> cursor jumps to 421:5 in generate.hpp file

In old builds:
- open boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp file
- Place cursor at 48:43 and Press Ctrl-B
==> cursor jumps to 15:9
- Place cursor at 16:21 and Press Ctrl-B
==> cursor jumps to 59:1 in result_of.hpp file (but it is a forward declaration only)

P.S. reverse_fold.hpp has same problem
Comment 3 soldatov 2015-01-12 15:43:23 UTC
Really a second 'In old builds:' line is 'In new builds:'
Comment 4 Quality Engineering 2015-01-20 04:03:07 UTC
Integrated into 'main-silver', will be available in build *201501200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2d08490e3421
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixing #249752 - inaccuracy tests: regression in Boost
Comment 5 Vladimir Voskresensky 2015-10-01 16:53:50 UTC
Let me check.
I think by 
- Place cursor at 16:21 and Press Ctrl-B
you mean line 17, not 16 of file 
boost_1_53_0/boost/fusion/algorithm/iteration/detail/preprocessed/fold.hpp

And you expect it to jump at one of result_of specializations in 
boost_1_53_0/boost/proto/generate.hpp, right?

In fact general specialization is in fact declared exactly in result_of.hpp on line 59, so the current jump is OK.
Comment 6 Vladimir Voskresensky 2015-10-01 17:04:43 UTC
> In fact general specialization is in fact declared exactly in result_of.hpp
> on line 59, so the current jump is OK.
Please, read it as:
General template is declared in in result_of.hpp on line 59, so the current jump is OK.

Are you OK with that?

Another problem I can see is that while specializations in result_of.hpp all have "Specializes..." annotation, when you jump into result_of.hpp on line 59 the General Template itself doesn't have "Specialized by" annotation.
Please, file the latter as separate bug.

Thanks.
Vladimir.
Comment 7 DimaZh 2015-10-08 14:14:10 UTC
I suggest to waive this issue to the next patch or minor release. Why is because it requires further/deeper investigation which is out of of current release timeframe
Comment 8 Jiri Kovalsky 2015-10-14 13:19:20 UTC
Bug waiver for 8.1 approved.
Comment 9 petrk 2016-09-05 11:17:01 UTC
boost 1.53 was excluded from tests and boost 1.59 was added. Therefore year-old statistic on 1.53 is not relevant, I think.