This is the mail archive of the gcc@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]

Re: CVS head (gcc-3.4), new warning for 'no return in templates'


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


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