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++/21244] Confusion in template instantiation


------- Additional Comments From dominik dot strasser at infineon dot com  2005-04-27 06:55 -------
Created an attachment (id=8748)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8748&action=view)
Another source illustrating the problem.

Error messages:
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:
In member function &#8216;void std::vector<bool, _Alloc>::_M_initialize(size_t)
[with _Alloc = std::allocator<bool>]&#8217;:
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:642:
  instantiated from &#8216;std::vector<bool, _Alloc>::vector(size_t) [with
_Alloc = std::allocator<bool>]&#8217;
gcc4_template1.C:14:   instantiated from here
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:454:
error: &#8216;std::<anonymous enum>&#8217; is/uses anonymous type
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:454:
error:	 trying to instantiate &#8216;template<class T> Foo operator/(const
Foo&, T)&#8217;
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:
In member function &#8216;std::_Bit_type*
std::_Bvector_base<_Alloc>::_M_allocate(size_t) [with _Alloc =
std::allocator<bool>]&#8217;:
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:453:
  instantiated from &#8216;void std::vector<bool,
_Alloc>::_M_initialize(size_t) [with _Alloc = std::allocator<bool>]&#8217;
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:642:
  instantiated from &#8216;std::vector<bool, _Alloc>::vector(size_t) [with
_Alloc = std::allocator<bool>]&#8217;
gcc4_template1.C:14:   instantiated from here
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:387:
error: &#8216;std::<anonymous enum>&#8217; is/uses anonymous type
/data/heizer1_0/strassed/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_bvector.h:387:
error:	 trying to instantiate &#8216;template<class T> Foo operator/(const
Foo&, T)&#8217;


-- 


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


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