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: | Unable to resolve identifier in std::complex specializations | ||
---|---|---|---|
Product: | cnd | Reporter: | bb125 <bb125> |
Component: | Code Model | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | testcase |
Description
bb125
2010-05-09 21:54:51 UTC
(In reply to comment #0) > Unable to resolve identifier in std::complex specializations > It is http://netbeans.org/bugzilla/show_bug.cgi?id=184779 (In reply to comment #1) > (In reply to comment #0) > > Unable to resolve identifier in std::complex specializations > > > It is http://netbeans.org/bugzilla/show_bug.cgi?id=184779 Thanks. I will close as duplication. All other "unstable" behavior should be fixed in current dev builds, i.e. issue 185009 *** This bug has been marked as a duplicate of bug 184779 *** The problem here is not that __real__ and __imag__ are unresolved, this was in gcc 3 as well and real was NOT unresolved. In gcc 4 they have changed complex from class to struct. I played with that and it seems that specialization has some issues with that. actual problem is that in version 4 they've changed complex class to struct but have left forward declarations as class: // Forward declarations. template<typename _Tp> class complex; template<> class complex<double>; ... template<typename _Tp> struct complex { ... } we need to hack code model to work with this. Isn't it an incorrect, non-standard usage of language? If it is so I'm not convinced we need to hack our code model to comply. Created attachment 98825 [details]
testcase
In this testcase mycomplex<float> has foo in codecompletion and mycomplex<double> (double specialization) does not.
thanks for the test case. I will investigate |