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 212843 - C++11 external enum declaration can not resolve initializer constants
Summary: C++11 external enum declaration can not resolve initializer constants
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 212124
Blocks:
  Show dependency tree
 
Reported: 2012-05-22 13:59 UTC by Vladimir Voskresensky
Modified: 2012-05-25 05:48 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 Vladimir Voskresensky 2012-05-22 13:59:13 UTC
C++11
--------------------
struct S
{
    enum { A = 1, B = 2 };
    struct T
    {
        enum { B = 102 };

        enum class E1;
        enum E2 : int;
    };
};

enum class S::T::E1 { A1 = A, B1 = B, C1 };
--------------------------------
A and B are marked as errors
Comment 2 Quality Engineering 2012-05-25 05:48:02 UTC
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/414ac5d9d03a
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #212843 - external enum declaration can not resolve initializer constants
- use scope class of external enum