Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183904 - gcc 4.1.2 has a typo in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_bvector.h
Summary: gcc 4.1.2 has a typo in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/b...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-01 23:10 UTC by Craig Bradney
Modified: 2007-07-02 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Bradney 2007-07-01 23:10:35 UTC
Line 774 has a typo:
    else
      {
        _ForwardIterator __mid = __first;
        std::advance(__mid, size());
        std::copy(__first, __mid, begin());
774:        insert(end(), __Mid, __last);
      }
      }


It should be __mid

Reproducible: Always

Steps to Reproduce:
1. Build something that uses this file
2. See the error in *Actual Results*
3.

Actual Results:  
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_bvector.h:774: error: '__Mid' was not declared in this scope
Comment 1 Craig Bradney 2007-07-01 23:11:02 UTC
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r3-mactel-mactelpatches-macbook-core2duo i686)
=================================================================
System uname: 2.6.21-gentoo-r3-mactel-mactelpatches-macbook-core2duo i686 Genuine Intel(R) CPU T2500 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 01 Jul 2007 17:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.mirror.sdv.fr http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu"
LINGUAS="en_GB en fr de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://luxbg.bradney.info/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread eds emboss encode esd evo fam fbcon firefox flac gd gdbm gif gnome gnutls gpm gstreamer gtk2 hal iconv imap ipv6 isdnlog java jpeg jpeg2k kde kdeenablefinal kdexdeltas kerberos lcms ldap libg++ lzw-tiff mad midi mikmod mmx mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt qt3 qt3support qt4 quicktime radeon readline real reflection samba sasl sdl session slp speex spell spl sse sse2 ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs x86 xml xorg xv zeroconf zlib" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-07-01 23:24:49 UTC
mine looks right.

dirtyepic@tycho ~ $ grep -nC5 "_ForwardIterator __mid" /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_bvector.h
766-    const size_type __len = std::distance(__first, __last);
767-    if (__len < size())
768-      erase(std::copy(__first, __last, begin()), end());
769-    else
770-      {
771:        _ForwardIterator __mid = __first;
772-        std::advance(__mid, size());
773-        std::copy(__first, __mid, begin());
774-        insert(end(), __mid, __last);
775-      }
776-      }
Comment 3 Craig Bradney 2007-07-02 05:04:49 UTC
Ok, will reemerge mine then
Comment 4 Craig Bradney 2007-07-02 11:30:50 UTC
Resolving this, even after a remerge its ok. I'll fsck those partitions.