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.
Summary: | Usage of enumerators in array dimension (or static const initializer) within class is unresolved | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Kvashin <vkvashin> |
Component: | Code Model | Assignee: | Leonid Lenyashin <lsl239> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Kvashin
2008-07-27 04:45:50 UTC
The same is correct when used in namespace namespace test { enum dimension { TINY = 10, SMALL = 100, LARGE = 1000, HUGE = 10000 }; class use_dimension_3 { int f; int data_1[TINY]; // unresolved use_dimension_3() : f(TINY) {} // ok use_dimension_3(int); static const int F2 = TINY; // unresolved }; use_dimension_3::use_dimension_3(int) : f(TINY) {} // ok void use_dimension_4() { int data_1[TINY]; // ok int data_2[test::TINY]; // ok } static const int C = TINY; // ok } already fixed in NB6.9 |