Bug 21572 - STL warnings/errors are impossible to understand
Summary: STL warnings/errors are impossible to understand
Status: RESOLVED DUPLICATE of bug 19699
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.0.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-14 17:48 UTC by İsmail Dönmez
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description İsmail Dönmez 2005-05-14 17:48:30 UTC
STL warnings/errors in gcc was always a mess but with gcc4 I see they are now really impossible to 
understand. Here is an excerpt : 
 
90% compiling /opt/development/kde/KDE/kdepim/certmanager/lib/kleo/multideletejob.cpp 
/usr/lib/gcc/x86_64-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.tcc: In member function 
&#8216;std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) 
[with _Tp = GpgME::Key, _Alloc = std::allocator<GpgME::Key>]&#8217;: 
/usr/lib/gcc/x86_64-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.tcc:141: warning: 
control may reach end of non-void function &#8216;typename _Alloc::pointer std::vector<_Tp, 
_Alloc>::_M_allocate_and_copy(size_t, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = 
__gnu_cxx::__normal_iterator<const GpgME::Key*, std::vector<GpgME::Key, 
std::allocator<GpgME::Key> > >, _Tp = GpgME::Key, _Alloc = std::allocator<GpgME::Key>]&#8217; being 
inlined 
/usr/lib/gcc/x86_64-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_uninitialized.h:113: 
warning: control may reach end of non-void function &#8216;_ForwardIterator 
std::__uninitialized_copy_aux(_InputIterator, _InputIterator, _ForwardIterator, __false_type) [with 
_InputIterator = __gnu_cxx::__normal_iterator<const GpgME::Key*, std::vector<GpgME::Key, 
std::allocator<GpgME::Key> > >, _ForwardIterator = GpgME::Key*]&#8217; being inlined 
 
 
As you can see in the warning I can't see which function is problematic. I only see references to 
STL headers installed by gcc which is useless.
Comment 1 Andrew Pinski 2005-05-14 18:14:06 UTC
This is a warning about dead code really, the problem comes from -fno-exceptions and try/catch being 
defined as "if (true)" and "else if (false)".

*** This bug has been marked as a duplicate of 19699 ***