This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]