[Bug c++/4462] Incorrect warning about noreturn function in C++

bangerth@dealii.org gcc-bugzilla@gcc.gnu.org
Fri May 23 14:40: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


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From bangerth@dealii.org  2003-05-23 14:30 -------
The noreturn argument is certainly not part of the function's signature,
so it wouldn't be inherited from functions in a derived class. A call to
f1() might therefore indeed return. In this respect, the given attribute
is more like the =0 attribute to virtual functions, which (of course) if also
not inherited.

The warning disappears if you call c1::f1(), in which case the actual function
being called is clear.

So I concur with Andrew.

W.



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