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

Summary: Error on handling template parameters of class with default values
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 134091    

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