This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12427] Compiler misses error, gets lost. big time
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2003 05:40:58 -0000
- Subject: [Bug c++/12427] Compiler misses error, gets lost. big time
- References: <20030926221928.12427.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12427
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-27 05:40 -------
Not a bug:
Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec> r3(Inc(),
Dec());
declares a function which takes the function pointer Inc (*)() and Dec (*) () as arguments
and returns a Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec>.
As the warning says:
Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec> r3(Inc (*)(), Dec (*)()).