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 243940 - inaccuracy tests (cpp11): forward declaration of enumerations
Summary: inaccuracy tests (cpp11): forward declaration of enumerations
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-19 15:19 UTC by soldatov
Modified: 2014-04-24 02:03 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 2014-04-19 15:19:23 UTC
File: cpp11/src/cpp0x/forw_enum3.C
Errors:
cpp11/src/cpp0x/forw_enum3.C 10 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 11 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 12 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 13 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 16 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 17 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 18 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 19 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 20 unexpected token: enum
cpp11/src/cpp0x/forw_enum3.C 21 unexpected token: }
cpp11/src/cpp0x/forw_enum3.C 25 Unable to resolve identifier E1.
cpp11/src/cpp0x/forw_enum3.C 26 Unable to resolve identifier E2.
cpp11/src/cpp0x/forw_enum3.C 27 Unable to resolve identifier E3.
cpp11/src/cpp0x/forw_enum3.C 28 Unable to resolve identifier E4.
cpp11/src/cpp0x/forw_enum3.C 29 Unable to resolve identifier E5.
cpp11/src/cpp0x/forw_enum3.C 32 Unable to resolve identifier E1.
cpp11/src/cpp0x/forw_enum3.C 33 Unable to resolve identifier E2.
cpp11/src/cpp0x/forw_enum3.C 34 Unable to resolve identifier E3.
cpp11/src/cpp0x/forw_enum3.C 35 Unable to resolve identifier E4.
cpp11/src/cpp0x/forw_enum3.C 36 Unable to resolve identifier E5.

Code:
enum class E1;
enum class E2 : int;
enum class E3 : short;
enum E4 : int;
enum E5 : short;

I have not any errors in NetBeans 8.0 and a lot of red lines in NetBeans trunk.
Comment 1 soldatov 2014-04-19 15:28:54 UTC
latest "good" report
Build: 20140416
===>Name = cpp11, Files = 610, Errors = 0, Warnings = 61, Invalid identifiers = 20, Expected failures = 7

first "bad" report
Build: 20140417
===>Name = cpp11, Files = 610, Errors = 40, Warnings = 89, Invalid identifiers = 24, Expected failures = 14
Comment 2 petrk 2014-04-21 09:09:45 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/681ad5165400
Comment 3 Quality Engineering 2014-04-22 02:26:37 UTC
Integrated into 'main-silver', will be available in build *201404220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/681ad5165400
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243940 - inaccuracy tests (cpp11): forward declaration of enumerations
Comment 4 soldatov 2014-04-22 07:58:53 UTC
Build: 20140421
===>Name = cpp11, Files = 610, Errors = 2, Warnings = 89, Invalid identifiers = 20, Expected failures = 7

File: cpp11/src/cpp0x/forw_enum6.C
Errors:
cpp11/src/cpp0x/forw_enum6.C 44 unexpected token: ::
cpp11/src/cpp0x/forw_enum6.C 64 unexpected token: ::

Code:
namespace N1
{
    struct D;
    enum class E6;
    enum E7 : int;
}

enum N1::E6 e6_1; //ok
enum ::N1::E6 e6_2; //ok
Comment 5 petrk 2014-04-22 14:17:53 UTC
Additional fix http://hg.netbeans.org/cnd-main/rev/3797db119ecc
Comment 6 Quality Engineering 2014-04-23 02:06:48 UTC
Integrated into 'main-silver', will be available in build *201404230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3797db119ecc
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Additional fix for #243940 - inaccuracy tests (cpp11): forward declaration of enumerations
-- fixed enum qualified id started with :: token
Comment 7 Quality Engineering 2014-04-24 02:03:06 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/7d28a3f5ab1d
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243940 - inaccuracy tests (cpp11): forward declaration of enumerations
(transplanted from 681ad516540071b70a2a3321508b8c50b8ec8a2f)