[Bug c++/16313] Function's address automatically taken

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 1 11:46:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list