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 269290

Summary: C++14: unresolved return type of function with auto type
Product: cnd Reporter: petrk
Component: Code ModelAssignee: petrk
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description petrk 2016-12-09 16:30:11 UTC
struct AAA {
    void foo();
};

auto myfun() {
    static AAA var;
    if (true) {
        return (AAA*)0;
    } else {
        return &var;
    }
}   

int main() {
    myfun()->foo(); // foo is unresolved
    return 0;
}
Comment 1 petrk 2016-12-09 17:05:25 UTC
Fixed as part of bug 268671
https://enum.ru.oracle.com/hg/release82/rev/42293be356a3
Comment 2 soldatov 2016-12-12 11:08:38 UTC
Verified in internal NetBeans 8,2 patch 1 build.