[Bug c++/4462] Incorrect warning about noreturn function in C++
pinskia@physics.uc.edu
gcc-bugzilla@gcc.gnu.org
Fri May 23 05:24:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4462
------- Additional Comments From pinskia@physics.uc.edu 2003-05-23 05:21 -------
c1::f2 () can return if you subclass c1 (call the sub class c2), and in c2, you have a f1 which does
return, then c1::f2() can return, so this is correct because f1 is virtual. if f1 was not virtual, then
gcc does warn.
Please close this bug as it is not a bug, but a misunderstanding of what virtual class functions are.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list