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++/25986] return from funcrtion of void value allowed



------- Comment #1 from gdr at cs dot tamu dot edu  2006-01-26 23:53 -------
Subject: Re:   New: return from funcrtion of void value allowed

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

| The following code is meaningless

says you.

| therefore should produce the WARNING.

I'm unconvinced.  C++ has evolved.  This functionality was *added* on
purpose to allow generic codes to be written seamlessly.  Noting is
wrong with it.

| At least would be useful to have some pedantic warning mode when this should
| produce warning.

it certainly does not belong to -pedantic.

-- Gaby


-- 


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


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