This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n
- From: "ctsa at u dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2003 01:29:08 -0000
- Subject: [Bug libstdc++/13290] New: gcc 3.3.x: simple typo in concept checking for std::generate_n
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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