[Bug c++/29266] Rule that binding rvalue to a refernce need a copy ctor don't work

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 28 13:39:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-09-28 13:39 -------
There is no
tdat_hash_map(_Alloc&) in the sources.
Adding one makes it get past that error and then we get:
t.cc: In constructor ‘tdat_hash_map<_AllocType>::tdat_hash_map(const
_AllocType&) [with _AllocType = MemAllocator<int>]Â’:
t.cc:64:   instantiated from here
t.cc:38: error: ‘MemAllocator<Type>::MemAllocator() [with Type = int]’ is
private
t.cc:49: error: within this context


So this is invalid still.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list