This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26740] [4.2 regression] ICE taking the address of a bound member function
- 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: 24 Mar 2006 17:08:01 -0000
- Subject: [Bug c++/26740] [4.2 regression] ICE taking the address of a bound member function
- References: <bug-26740-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-03-24 17:08 -------
The following code should compile with -fpermissive or -fms-extensions.
So changing to ice-on-valid-code.
======================================
struct A
{
void foo();
};
void bar()
{
&A().foo;
}
======================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|error-recovery, ice-on- |ice-on-valid-code, monitored
|invalid-code |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26740