This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28148] [4.0/4.1/4.2 Regression] ICE with pointer to member function initializer and cast to a different type
- From: "pinskia 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 Jun 2006 03:55:07 -0000
- Subject: [Bug c++/28148] [4.0/4.1/4.2 Regression] ICE with pointer to member function initializer and cast to a different type
- References: <bug-28148-12429@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-24 03:55 -------
(In reply to comment #3)
> Subject: Re: ICE with pointer to member function initializer
> and cast to a different type
> That should be legal ISO c++. That type of constuct is used actually
> pretty common in specific types of applications (OS and embedded apps).
What I mean is that the type of the arguments and return type don't match so if
you use __Virtual__foo__Var1 without a cast back, the code would be undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28148