public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n
@ 2003-12-04 1:29 ctsa at u dot washington dot edu
2003-12-04 2:26 ` [Bug libstdc++/13290] [3.3 only] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ctsa at u dot washington dot edu @ 2003-12-04 1:29 UTC (permalink / raw)
To: gcc-bugs
In the latest gcc 3.3 snapshot (20031201) there is a typo in the concept
checking code for the c++ stdlib function generate_n, in:
{gccroot}/libstdc++-v3/include/bits/stl_algo.h
It looks like the phrase "__typeof__(gen())" was intented to be
"__typeof__(__gen())". This problem is already fixed in the latest mainline
snapshot (20031203).
Here is the context:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
$ diff -c stl_algo.h stl_algo_fix.h
*** stl_algo.h Tue Sep 30 07:37:40 2003
--- stl_algo_fix.h Wed Dec 3 16:55:36 2003
***************
*** 948,954 ****
// concept requirements
__glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
// "the type returned by a _Generator"
! __typeof__(gen())>)
for ( ; __n > 0; --__n, ++__first)
*__first = __gen();
--- 948,954 ----
// concept requirements
__glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
// "the type returned by a _Generator"
! __typeof__(__gen())>)
for ( ; __n > 0; --__n, ++__first)
*__first = __gen();
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
--
Summary: gcc 3.3.x: simple typo in concept checking for
std::generate_n
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ctsa at u dot washington dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13290
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13290] [3.3 only] gcc 3.3.x: simple typo in concept checking for std::generate_n
2003-12-04 1:29 [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n ctsa at u dot washington dot edu
@ 2003-12-04 2:26 ` pinskia at gcc dot gnu dot org
2003-12-04 18:45 ` cvs-commit at gcc dot gnu dot org
2003-12-04 19:35 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-04 2:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-04 02:26 -------
This was fixed by on the mainline by:
* config/locale/generic/c_locale.h: Include <cstdlib> and
<cstring>.
* include/bits/boost_concept_check.h: Add this-> to unqualified
method calls.
* include/bits/deque.tcc: Likewise.
* include/bits/locale_facets.h : Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/stdio_filebuf.h: Likewise.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-04 02:26:55
date| |
Summary|gcc 3.3.x: simple typo in |[3.3 only] gcc 3.3.x: simple
|concept checking for |typo in concept checking for
|std::generate_n |std::generate_n
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13290
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13290] [3.3 only] gcc 3.3.x: simple typo in concept checking for std::generate_n
2003-12-04 1:29 [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n ctsa at u dot washington dot edu
2003-12-04 2:26 ` [Bug libstdc++/13290] [3.3 only] " pinskia at gcc dot gnu dot org
@ 2003-12-04 18:45 ` cvs-commit at gcc dot gnu dot org
2003-12-04 19:35 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-04 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-04 18:45 -------
Subject: Bug 13290
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: bkoz@gcc.gnu.org 2003-12-04 18:45:43
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: stl_algo.h
Log message:
2003-12-04 Christopher Saunders <ctsa@u.washington.edu>
PR libstdc++/13290
* include/bits/stl_algo.h (generate_n): Fix typo.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1464.2.157&r2=1.1464.2.158
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/stl_algo.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.27.20.1&r2=1.27.20.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13290
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/13290] [3.3 only] gcc 3.3.x: simple typo in concept checking for std::generate_n
2003-12-04 1:29 [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n ctsa at u dot washington dot edu
2003-12-04 2:26 ` [Bug libstdc++/13290] [3.3 only] " pinskia at gcc dot gnu dot org
2003-12-04 18:45 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-04 19:35 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-04 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-04 19:35 -------
Fix was checked in thanks.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13290
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-04 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04 1:29 [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n ctsa at u dot washington dot edu
2003-12-04 2:26 ` [Bug libstdc++/13290] [3.3 only] " pinskia at gcc dot gnu dot org
2003-12-04 18:45 ` cvs-commit at gcc dot gnu dot org
2003-12-04 19:35 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).