This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21084] New: parse error on valid dependent default argument


template< typename _Key,typename _Val,typename _KeyOfValue,typename
_Compare,typename _Alloc> class _Rb_tree;
template< typename _Key,typename _Compare,typename _Alloc >class multiset{
multiset(_Compare const& __comp,
typename _Rb_tree<_Key,_Key,_Key ,_Compare,_Alloc > ::allocator_type const&
__a=_Rb_tree<_Key,_Key,_Key ,_Compare,_Alloc > ::allocator_type());
};

accepted if the allocator_type is typedef'ed and the default argument is
constructed through the typedef name.

gcc version 4.0.0 20050415 (prerelease)
gcc-Version 3.4.4 20050314 (prerelease) (Debian 3.4.3-12)

-- 
           Summary: parse error on valid dependent default argument
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21084


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]