[Bug c++/25986] return from funcrtion of void value allowed

gdr at cs dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Fri Jan 27 02:42:00 GMT 2006



------- Comment #6 from gdr at cs dot tamu dot edu  2006-01-27 02:42 -------
Subject: Re:  return from funcrtion of void value allowed

"yuri at tsoft dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| > This functionality was *added* on
| > purpose to allow generic codes to be written seamlessly
| Sure!
| Then code "void f() { void x; retrun (x); }" should work.

If you want it to work, take it to the ISO C++ committee. 

-- Gaby


-- 


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



More information about the Gcc-bugs mailing list