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++/28148] [4.0/4.1/4.2 Regression] ICE with pointer to member function initializer and cast to a different type



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


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