This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11619] Improper warning when calling string::begin() on const string


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From bgrubi01 at eecs dot tufts dot edu  2003-07-21 19:48 -------
Subject:  Improper warning when calling string::begin() on const string

Sorry for the bother, thanks for the heads up.  Blame my CS prof!  :)

>>>>> "bangerth" == bangerth at dealii dot org <gcc-bugzilla@gcc.gnu.org> writes:

    bangerth> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT*
    bangerth> gcc-bugs@gcc.gnu.org.
    bangerth> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11619


    bangerth> bangerth at dealii dot org changed:

    bangerth>            What |Removed |Added
    bangerth> ----------------------------------------------------------------------------
    bangerth> Status|UNCONFIRMED |RESOLVED Resolution| |INVALID


    bangerth> ------- Additional Comments From bangerth at dealii dot
    bangerth> org 2003-07-21 19:25 ------- That's not a problem in
    bangerth> gcc, but in your code. You need to write
    bangerth> string::const_iterator it = foo.begin();

    bangerth> W.



    bangerth> ------- You are receiving this mail because: ------- You
    bangerth> reported the bug, or are watching the reporter.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]