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 136734 - Error on handling template parameters of class with default values
Summary: Error on handling template parameters of class with default values
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks: 134091
  Show dependency tree
 
Reported: 2008-06-07 14:33 UTC by Vladimir Voskresensky
Modified: 2008-06-08 03:52 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 Vladimir Voskresensky 2008-06-07 14:33:10 UTC
compilable example from loki (a lot of identical problems cause inaccurate code model):
namespace stttd {
    typedef unsigned long size_t;
}

namespace Loki {
    namespace LongevityLifetime
    {
        template <unsigned int Longevity, class T>
        class SingletonFixedLongevity
        {
        public:
        };
        
        template <class T>
        struct DieLast  : SingletonFixedLongevity<0xFFFFFFFF ,T>
        {};        
        /** @struct DieAsSmallObjectParent
            @ingroup SmallObjectGroup
            Lifetime policy to manage lifetime dependencies of 
            SmallObject base and child classes.
            The Base class should have this lifetime
        */
        template <class T>
        struct DieAsSmallObjectParent  : DieLast<T> {};

    }     
    class SmallObjAllocator {
    
    };
    class Mutex {
    public:
    };

    template <class Host, class MutexPolicy = ::Loki::Mutex>
    class SingleThreaded {
    public:
    };

    template
    <
        template <class, class> class ThreadingModel = ::Loki::SingleThreaded,
        stttd::size_t chunkSize = 100,
        stttd::size_t maxSmallObjectSize = 100,
        stttd::size_t objectAlignSize = 100,
        template <class> class LifetimePolicy = LongevityLifetime::DieAsSmallObjectParent,
        class MutexPolicy = ::Loki::Mutex
    >
    class AllocatorSingleton : public SmallObjAllocator {
    
    };
}
Comment 1 Vladimir Voskresensky 2008-06-07 16:07:15 UTC
fixed 
 http://hg.netbeans.org/main?cmd=changeset;node=143a9aee26d1
Comment 2 Quality Engineering 2008-06-08 03:52:54 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #244 build
Changeset: http://hg.netbeans.org/main/rev/143a9aee26d1
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#136734: Error on handling template parameters of class with default values