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++/47211] ICE: in cp_build_addr_expr_1, at cp/typeck.c:4866 with -fms-extensions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47211

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-07 16:32:39 UTC ---
The example is rejected by MSVC with error C2298:
http://msdn.microsoft.com/en-us/library/zkcy3ee2.aspx
The problem seems to be taking the address of (this->*pmethod), which would be
the same as error generated by gcc.


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