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 159059

Summary: Unresolved id in static cast to template parameter
Product: cnd Reporter: nnnnnk <nnnnnk>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description nnnnnk 2009-02-24 13:53:17 UTC
Example:
struct B {
    void bar() {
        
    }
};

template <class T> struct A {
    void foo() {
        T x;
        static_cast<T>(x).bar(); // should be warning
    }
};

int main() {
    A<B> a;
    a.foo();

    return 0;
}
Comment 1 nnnnnk 2009-03-03 12:25:38 UTC
Less than 20 unresolved ids on Boost 
Comment 2 nnnnnk 2010-04-22 17:40:14 UTC
Was fixed somewhere in time.