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]

libstdc++/1967: bits/localefwd.h incorrectly uses int instead of size_t in for loop.



>Number:         1967
>Category:       libstdc++
>Synopsis:       bits/localefwd.h incorrectly uses int instead of size_t in for loop.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 13 12:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Gregory Bumgardner
>Release:        gcc_3_0_branch as of 20010212
>Organization:
>Environment:
N/A
>Description:
One of the for-loops in bits/localefwd.h uses an int counter
in a comparison with a size_t static class member thereby
producing warning.
>How-To-Repeat:
Use the locale template constructor that takes a facet
instance as its second argument.
>Fix:
change the int to size_t

(Patch forthcoming)
>Release-Note:
>Audit-Trail:
>Unformatted:


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