This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
__atomic_futex_unsigned::_M_load_when_not_equal has a 'return' statement with no value, in function returning unsigned int
- From: Patrick Palka <patrick at parcs dot ath dot cx>
- To: libstdc++ at gcc dot gnu dot org
- Cc: triegel at redhat dot com
- Date: Wed, 22 Jul 2015 22:30:45 -0400
- Subject: __atomic_futex_unsigned::_M_load_when_not_equal has a 'return' statement with no value, in function returning unsigned int
- Authentication-results: sourceware.org; auth=none
Specifically, line 149 of atomix_futex.h has a bare "return;"
statement, but the function is marked as returning non-void. This was
caught while working on PR c++/18969. Vanilla G++ does not catch this
error because return statements inside templates are currently only
analyzed during instantiation time.