public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
@ 2006-10-26  4:26 ` mueller at gcc dot gnu dot org
  2006-10-30 23:35 ` mueller at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-10-26  4:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

mueller at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mueller at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
  2006-10-26  4:26 ` [Bug c++/18313] Missing warning for superfluous const's in return types mueller at gcc dot gnu dot org
@ 2006-10-30 23:35 ` mueller at gcc dot gnu dot org
  2006-11-30 23:08 ` mueller at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-10-30 23:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mueller at gcc dot gnu dot org  2006-10-30 23:34 -------
*** Bug 24273 has been marked as a duplicate of this bug. ***


-- 

mueller at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bagnara at cs dot unipr dot
                   |                            |it


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
  2006-10-26  4:26 ` [Bug c++/18313] Missing warning for superfluous const's in return types mueller at gcc dot gnu dot org
  2006-10-30 23:35 ` mueller at gcc dot gnu dot org
@ 2006-11-30 23:08 ` mueller at gcc dot gnu dot org
  2006-11-30 23:12 ` mueller at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-11-30 23:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mueller at gcc dot gnu dot org  2006-11-30 23:08 -------
Subject: Bug 18313

Author: mueller
Date: Thu Nov 30 23:08:27 2006
New Revision: 119382

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119382
Log:
2006-12-01  Dirk Mueller  <dmueller@suse.de>

        PR c++/18313
        * decl.c (grokdeclarator): Warn for type qualifiers on return
        type for non-dependent types.
        * pt.c (tsubst_function_type): Warn for type qualifiers on
        return type for dependent types.

        * g++.dg/warn/Wreturn-type-4.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wreturn-type-4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-11-30 23:08 ` mueller at gcc dot gnu dot org
@ 2006-11-30 23:12 ` mueller at gcc dot gnu dot org
  2007-01-26 22:52 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-11-30 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mueller at gcc dot gnu dot org  2006-11-30 23:11 -------
Implemented for 4.3. 


-- 

mueller at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-11-30 23:12 ` mueller at gcc dot gnu dot org
@ 2007-01-26 22:52 ` pinskia at gcc dot gnu dot org
  2007-01-26 23:01 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-26 22:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-01-26 22:52 -------
*** Bug 30601 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2007-01-26 22:52 ` pinskia at gcc dot gnu dot org
@ 2007-01-26 23:01 ` bangerth at dealii dot org
  2007-01-26 23:04 ` manu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2007-01-26 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from bangerth at dealii dot org  2007-01-26 23:01 -------
Hm, I'm not sure if I like this situation. Consider this snippet,
typical of template games:
---------------
  template <typename T> class Array {
    T& operator();
    T operator() const;
  };
---------------
This class will trigger a warning if instantiated as Array<const double>
because the return type of the second operator() is now 'const double'.

W.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2007-01-26 23:01 ` bangerth at dealii dot org
@ 2007-01-26 23:04 ` manu at gcc dot gnu dot org
  2008-02-26  1:51 ` pinskia at gcc dot gnu dot org
  2009-07-25 13:12 ` simartin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-26 23:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from manu at gcc dot gnu dot org  2007-01-26 23:04 -------
Dirk, the patch is missing an update to doc/invoke.texi to reflect the changes.
Would you mind to update it? Thanks.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org,
                   |                            |mueller at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2007-01-26 23:04 ` manu at gcc dot gnu dot org
@ 2008-02-26  1:51 ` pinskia at gcc dot gnu dot org
  2009-07-25 13:12 ` simartin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-26  1:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
       [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2008-02-26  1:51 ` pinskia at gcc dot gnu dot org
@ 2009-07-25 13:12 ` simartin at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-07-25 13:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from simartin at gcc dot gnu dot org  2009-07-25 13:12 -------
I think that the objection in comment #6 has been taken into account, with
 
http://gcc.gnu.org/viewcvs/trunk/gcc/cp/pt.c?r1=137660&r2=137672&diff_format=h


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/18313] Missing warning for superfluous const's in return types
  2004-11-05 21:23 [Bug c++/18313] New: " reichelt at gcc dot gnu dot org
@ 2004-11-05 21:25 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-05 21:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-05 21:25 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-05 21:25:47
               date|                            |


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-25 13:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
2006-10-26  4:26 ` [Bug c++/18313] Missing warning for superfluous const's in return types mueller at gcc dot gnu dot org
2006-10-30 23:35 ` mueller at gcc dot gnu dot org
2006-11-30 23:08 ` mueller at gcc dot gnu dot org
2006-11-30 23:12 ` mueller at gcc dot gnu dot org
2007-01-26 22:52 ` pinskia at gcc dot gnu dot org
2007-01-26 23:01 ` bangerth at dealii dot org
2007-01-26 23:04 ` manu at gcc dot gnu dot org
2008-02-26  1:51 ` pinskia at gcc dot gnu dot org
2009-07-25 13:12 ` simartin at gcc dot gnu dot org
2004-11-05 21:23 [Bug c++/18313] New: " reichelt at gcc dot gnu dot org
2004-11-05 21:25 ` [Bug c++/18313] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).