public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13947] New: ptr_fun doesn't recognise argument
@ 2004-01-31 13:43 debian-gcc at lists dot debian dot org
2004-01-31 19:08 ` [Bug c++/13947] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-01-31 13:43 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/222497]
diagnostic seen with g++-3.[234], not with g++-2.95
The program below doesn't compile. If you change "isalnum" in ptr_fun
to "isal", it compiles just fine, though.
-- CUT HERE --
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <cctype>
using namespace std;
int isal(int c)
{
return isalnum(c);
}
int main(int argc, char **argv)
{
string component(argv[1]);
if (find_if(component.begin(), component.end(),
ptr_fun(isalnum)) != component.end()) {
cerr << "Error\n";
return -1;
}
}
-- CUT HERE --
--
Summary: ptr_fun doesn't recognise argument
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13947
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/13947] ptr_fun doesn't recognise argument
2004-01-31 13:43 [Bug c++/13947] New: ptr_fun doesn't recognise argument debian-gcc at lists dot debian dot org
@ 2004-01-31 19:08 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 19:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 19:08 -------
This is a dup of bug 5458. (even though their testcases are different, I can reduce it to the same
problem).
*** This bug has been marked as a duplicate of 5458 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13947
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-31 19:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 13:43 [Bug c++/13947] New: ptr_fun doesn't recognise argument debian-gcc at lists dot debian dot org
2004-01-31 19:08 ` [Bug c++/13947] " 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).