This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: CVS head (gcc-3.4), new warning for 'no return in templates'
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Andrew Pollard <andrewp at andypo dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: 31 Dec 2002 13:02:47 +0100
- Subject: Re: CVS head (gcc-3.4), new warning for 'no return in templates'
- Organization: Integrable Solutions
- References: <200212311144.gBVBitNc006434@garfield.andypo.net>
Andrew Pollard <andrewp@andypo.net> writes:
[...]
| But, in this case, couldn't the compiler figure out that 'result_type'
| is in fact 'void' anyway, and not warn?
No, it can't until instantiation time.
Probably, the non-return detection machinery should be changed to
defer warning when it can't determine for sure what the return type is.
-- Gaby