[patch] Make vector::at() assertion message more useful (try #2)

Andreas Schwab schwab@suse.de
Mon Sep 23 08:53:00 GMT 2013


Paul Pluzhnikov <ppluzhnikov@google.com> writes:

> Index: libstdc++-v3/src/c++11/snprintf_lite.cc
> ===================================================================
> --- libstdc++-v3/src/c++11/snprintf_lite.cc	(revision 0)
> +++ libstdc++-v3/src/c++11/snprintf_lite.cc	(revision 0)
> @@ -0,0 +1,152 @@
> +// Debugging support -*- C++ -*-
> +
> +// Copyright (C) 2013 Free Software Foundation, Inc.
> +//
> +// This file is part of GCC.
> +//
> +// GCC is free software; you can redistribute it and/or modify
> +// it under the terms of the GNU General Public License as published by
> +// the Free Software Foundation; either version 3, or (at your option)
> +// any later version.
> +//
> +// GCC is distributed in the hope that it will be useful,
> +// but WITHOUT ANY WARRANTY; without even the implied warranty of
> +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +// GNU General Public License for more details.
> +//
> +// Under Section 7 of GPL version 3, you are granted additional
> +// permissions described in the GCC Runtime Library Exception, version
> +// 3.1, as published by the Free Software Foundation.
> +
> +// You should have received a copy of the GNU General Public License and
> +// a copy of the GCC Runtime Library Exception along with this program;
> +// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
> +// <http://www.gnu.org/licenses/>.
> +
> +#include <stdarg.h>
> +#include <bits/functexcept.h>
> +#include <bits/locale_facets.h>
> +
> +namespace std {
> +  template<typename _CharT, typename _ValueT>
> +  int
> +  __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit,
> +                ios_base::fmtflags __flags, bool __dec);
> +}
> +

m68k-linux/./libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `int std::__int_to_char<char, unsigned int>(char*, unsigned int, char const*, std::_Ios_Fmtflags, bool)'

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Libstdc++ mailing list