This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16313] Function's address automatically taken
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2004 11:46:39 -0000
- Subject: [Bug c++/16313] Function's address automatically taken
- References: <20040701103108.16313.akim@lrde.epita.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-07-01 11:46 -------
Your code is valid, so mainline's behavior is correct.
GCC 3.4.1 will also accept it.
An explanation and the patches that fixed the compiler can be found
in PR 3518.
Btw, your code is accepted by gcc 2.95.x, rejected by gcc 3.0.x,
again accepted by gcc 3.1 - 3.2.1, again rejected by gcc 3.2.2 - 3.4.0,
and (hopefully) finally accepted by 3.4.1 and later. ICC 8.0 also accepts
the code.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|pending |c++
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16313