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 138216 - IDE highlights 'typedef typename ct_imp2<T, ...' line as wrong
Summary: IDE highlights 'typedef typename ct_imp2<T, ...' line as wrong
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: nnnnnk
URL:
Keywords:
: 138344 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-25 13:28 UTC by soldatov
Modified: 2008-07-09 11:29 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 soldatov 2008-06-25 13:28:21 UTC
IDE highlights this code as wrong (code from /export/new_projects/boost_1_33_1/boost/detail/call_traits.hpp)

template <typename T, bool small_>
struct ct_imp2
{
   typedef const T& param_type;
};

template <typename T>
struct ct_imp2<T, true>
{
   typedef const T param_type;
};

template <typename T, bool isp, bool b1>
struct ct_imp
{
   typedef const T& param_type;
};

template <typename T, bool isp>
struct ct_imp<T, isp, true > {
    typedef typename ct_imp2<T, sizeof (T) <= sizeof (void*) >::param_type param_type;
};

int main() {
    return 0;
}
Comment 1 Alexey Vladykin 2008-06-28 16:06:59 UTC
*** Issue 138344 has been marked as a duplicate of this issue. ***
Comment 2 nnnnnk 2008-07-02 14:34:23 UTC
It´s a particular case of nondeterminism A<B>C.