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++/15531] dynamic_cast fails (at runtime) when dependant on friendship of invoker


------- Additional Comments From bangerth at dealii dot org  2004-05-18 23:35 -------
Maybe I should be a little more explicit: the cast actually 
happens inside the dynamic_cast operator, but that isn't a 
friend of the two classes (and can't be made a friend). Thus, 
it can't do the cast and returns zero. The fact that the 
call to the dynamic_cast is inside a class that _can_ do this 
is immaterial here. 
 
W. 

-- 


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


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