[Bug c++/12427] Compiler misses error, gets lost. big time

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Sat Sep 27 15:22:00 GMT 2003


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



------- Additional Comments From gdr at integrable-solutions dot net  2003-09-27 10:15 -------
Subject: Re:  Compiler misses error, gets lost. big time

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| 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 

Not quite right.  It declares a function named r3 taking an Inc and a
Dec and returns Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec>.

(Note the parameter type are not pointer to functions).

-- Gaby



More information about the Gcc-bugs mailing list