[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #15 from bangerth at dealii dot org 2008-07-10 03:38 --- (In reply to comment #11) > Subject: Re: [4.3 regression] -Wreturn-type warns about more > than what the documentation says > > > > I think this was done on purpose. > > It is contrary to what the documentation says. I think it also doesn't > make much sense in C++ if the return type results from a template > substitution. For example, the following case is rather common: > > template class Array { > T& operator(); > T operator() const; > }; > > This class will trigger a warning if instantiated as Array > because the return type of the second operator() is now 'const double'. This issue has now been addressed with the most recent patch for PR 36760. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #14 from pinskia at gcc dot gnu dot org 2008-06-27 17:47 --- *** Bug 36052 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #13 from mueller at gcc dot gnu dot org 2007-01-30 16:20 --- Subject: Bug 30601 Author: mueller Date: Tue Jan 30 16:20:06 2007 New Revision: 121342 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121342 Log: 2007-01-30 Dirk Mueller <[EMAIL PROTECTED]> PR c++/30601 * doc/invoke.texi (-Wreturn-type): Update description to match new behavior. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/invoke.texi -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #12 from manu at gcc dot gnu dot org 2007-01-26 23:00 --- Argh! Just when the regression hunt found the patch! So yes, it was on purpose. And the discussion + review is here: http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00792.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #11 from bangerth at math dot tamu dot edu 2007-01-26 22:59 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says > I think this was done on purpose. It is contrary to what the documentation says. I think it also doesn't make much sense in C++ if the return type results from a template substitution. For example, the following case is rather common: template class Array { T& operator(); T operator() const; }; This class will trigger a warning if instantiated as Array because the return type of the second operator() is now 'const double'. W. - Wolfgang Bangerthemail:[EMAIL PROTECTED] www: http://www.math.tamu.edu/~bangerth/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #10 from pinskia at gcc dot gnu dot org 2007-01-26 22:52 --- See PR 18313 *** This bug has been marked as a duplicate of 18313 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-01-26 22:51 --- I think this was done on purpose. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #8 from bangerth at math dot tamu dot edu 2007-01-26 21:41 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says > just assume people are less confrontational than it might appear. :-) True. Gaby is probably willing to testify that I'm generally a rather mild-mannered person :-) - Wolfgang Bangerthemail:[EMAIL PROTECTED] www: http://www.math.tamu.edu/~bangerth/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #7 from gdr at cs dot tamu dot edu 2007-01-26 21:32 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says "manu at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | OK. That is fine. Just that I am new here and I would like to be | told whether I am doing something wrong. just assume people are less confrontational than it might appear. :-) -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #6 from gdr at cs dot tamu dot edu 2007-01-26 21:21 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says "bangerth at math dot tamu dot edu" <[EMAIL PROTECTED]> writes: | Subject: Re: [4.3 regression] -Wreturn-type warns about more | than what the documentation says | | | > Why am I in the CC list? | | I put you there. I assumed that the bug was introduced with your recent | work on warnings. If that isn't the case: my apologies, and feel free to | remove yourself from the CC: list again. I believe it was introduced by someone else. The documentation needs fixing. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #5 from manu at gcc dot gnu dot org 2007-01-26 21:13 --- (In reply to comment #4) > I'm not accusing you of having caused this. I'm just trying to get anyone > knowledgable about the warning system to help find out who did :-) > OK. That is fine. Just that I am new here and I would like to be told whether I am doing something wrong. I am running a regression hunt right now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #4 from bangerth at math dot tamu dot edu 2007-01-26 21:11 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says > You assumed? Did I do something wrong? I don't know. Possibly not. But the people who've been working in a certain area where a problem appears typically can make better guesses who might actually have introduced this bug. I'm not accusing you of having caused this. I'm just trying to get anyone knowledgable about the warning system to help find out who did :-) W. - Wolfgang Bangerthemail:[EMAIL PROTECTED] www: http://www.math.tamu.edu/~bangerth/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #3 from manu at gcc dot gnu dot org 2007-01-26 20:50 --- (In reply to comment #2) > Subject: Re: [4.3 regression] -Wreturn-type warns about more > than what the documentation says > > > > Why am I in the CC list? > > I put you there. I assumed that the bug was introduced with your recent > work on warnings. If that isn't the case: my apologies, and feel free to > remove yourself from the CC: list again. You assumed? Did I do something wrong? Well, anyway, I will look into it and try to find when we regressed. Please, next time use [EMAIL PROTECTED] Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #2 from bangerth at math dot tamu dot edu 2007-01-26 19:58 --- Subject: Re: [4.3 regression] -Wreturn-type warns about more than what the documentation says > Why am I in the CC list? I put you there. I assumed that the bug was introduced with your recent work on warnings. If that isn't the case: my apologies, and feel free to remove yourself from the CC: list again. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601
[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says
--- Comment #1 from manu at gcc dot gnu dot org 2007-01-26 18:56 --- Why am I in the CC list? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30601