public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14926] New: libstdc++ rejects forward declarations.
@ 2004-04-12 17:57 vassili_bourdo at softhome dot net
  2004-04-12 18:03 ` [Bug libstdc++/14926] " vassili_bourdo at softhome dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: vassili_bourdo at softhome dot net @ 2004-04-12 17:57 UTC (permalink / raw)
  To: gcc-bugs

the code:

namespace std 
{
	template<class,class> class vector;//forward declaration
}

#include <vector>

int main()
{
	std::vector<int> v;
	return 0;
}

causes following compile-time error:

bug.cxx:2: error:   first declared as `template<class, class> struct 
std::vector' here
d:/tools/gcc/include/c++/3.4.0/bits/stl_vector.h:141: error:   also declared as 
`template<class _Tp, class _Alloc> class __gnu_norm::vector' here
bug.cxx:9: error: use of `vector' is ambiguous

-- 
           Summary: libstdc++ rejects forward declarations.
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vassili_bourdo at softhome dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-04-12 22:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-12 17:57 [Bug libstdc++/14926] New: libstdc++ rejects forward declarations vassili_bourdo at softhome dot net
2004-04-12 18:03 ` [Bug libstdc++/14926] " vassili_bourdo at softhome dot net
2004-04-12 18:37 ` vassili_bourdo at softhome dot net
2004-04-12 18:42 ` vassili_bourdo at softhome dot net
2004-04-12 18:43 ` [Bug c++/14926] [3.4/3.4 regression] forward declarations and strong using bangerth at dealii dot org
2004-04-12 18:54 ` [Bug c++/14926] [3.4/3.5 " pcarlini at suse dot de
2004-04-12 18:58 ` gdr at integrable-solutions dot net
2004-04-12 19:03 ` gdr at integrable-solutions dot net
2004-04-12 19:03 ` gdr at integrable-solutions dot net
2004-04-12 20:00 ` [Bug libstdc++/14926] " bangerth at dealii dot org
2004-04-12 20:40 ` gdr at integrable-solutions dot net
2004-04-12 20:41 ` bangerth at dealii dot org
2004-04-12 22:14   ` llewelly
2004-04-12 22:15 ` llewelly at xmission dot com
2004-04-12 22:54 ` bangerth at dealii dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).