This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13106] [3.4 Regression] Wrong warning "no return statement ..." for void template function
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2003 03:07:16 -0000
- Subject: [Bug c++/13106] [3.4 Regression] Wrong warning "no return statement ..." for void template function
- References: <20031118141241.13106.stip@mathematik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2003-11-20 03:07 -------
Subject: Re: [3.4 Regression] Wrong warning "no return statement ..." for void template function
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Or even shorter than that:
| template <typename T> T dummy() { }
|
| GCC should not warn about this because it does not know what the type is.
Yup. I suppose it is again middle-end trying to do front-end jobs :-(
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13106