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 269292 - С++14: decltype(auto) is not supported
Summary: С++14: decltype(auto) is not supported
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-09 18:58 UTC by petrk
Modified: 2016-12-12 10:36 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 petrk 2016-12-09 18:58:43 UTC
struct AAA {
    int foo();
};

struct BBB : AAA {
    int boo();
};

decltype(auto) var1 = AAA();

decltype(auto) func() {
    return BBB();
}

int main() {
    var1.foo();
    func().foo();
    func().boo();
    decltype(auto) var2 = BBB();
    var2.boo();
    return 0; 
}
Comment 1 petrk 2016-12-09 19:36:49 UTC
Fixed as part of bug 268671:
https://enum.ru.oracle.com/hg/release82/rev/b44c9094893c
Comment 2 soldatov 2016-12-12 10:36:07 UTC
Verified in internal NetBeans 8,2 patch 1 build.