public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34758]  New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument
@ 2008-01-12 19:09 reichelt at gcc dot gnu dot org
  2008-01-12 19:10 ` [Bug c++/34758] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-12 19:09 UTC (permalink / raw)
  To: gcc-bugs

The diagnostic for the following invalid code snippet degraded in GCC 3.4.0:

=======================
struct A
{
  A (const A& = A());
};
=======================

Since GCC 3.4.0 we get:

bug.cc:3: error: the default argument for parameter 0 of 'A::A(const A&)' has
not yet been parsed

But before we got the much clearer diagnostic (although it was just a warning):

bug.cc:3: warning: circular dependency in default args of `A::A(const A&)'

In addition, the counting of the parameters should start with 1.


-- 
           Summary: [4.1/4.2/4.3 regression] Bad diagnostic for circular
                    dependency in constructor default argument
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/34758] [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
@ 2008-01-12 19:10 ` reichelt at gcc dot gnu dot org
  2008-01-12 20:47 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-12 19:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/34758] [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
  2008-01-12 19:10 ` [Bug c++/34758] " reichelt at gcc dot gnu dot org
@ 2008-01-12 20:47 ` rguenth at gcc dot gnu dot org
  2008-01-13  2:22 ` bangerth at dealii dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-12 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-12 19:46 -------
Confirmed.  With the better diagnostic we had accepts-invalid, so lowering
priority as regression status is not exactly clear.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-12 19:46:58
               date|                            |


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


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

* [Bug c++/34758] [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
  2008-01-12 19:10 ` [Bug c++/34758] " reichelt at gcc dot gnu dot org
  2008-01-12 20:47 ` rguenth at gcc dot gnu dot org
@ 2008-01-13  2:22 ` bangerth at dealii dot org
  2008-01-17 20:37 ` pcarlini at suse dot de
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2008-01-13  2:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2008-01-13 02:02 -------
If the original warning is ever restored, please make it read
    circular dependency in default argument
instead of the abbreviate language
    circular dependency in default args

W.


-- 

bangerth at dealii dot org changed:

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


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


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

* [Bug c++/34758] [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-13  2:22 ` bangerth at dealii dot org
@ 2008-01-17 20:37 ` pcarlini at suse dot de
  2008-07-04 22:28 ` [Bug c++/34758] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2008-01-17 20:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pcarlini at suse dot de  2008-01-17 19:10 -------
On it.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/34758] [4.2/4.3/4.4 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-01-17 20:37 ` pcarlini at suse dot de
@ 2008-07-04 22:28 ` jsm28 at gcc dot gnu dot org
  2008-08-11 22:50 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-07-04 22:27 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] Bad
                   |Bad diagnostic for circular |diagnostic for circular
                   |dependency in constructor   |dependency in constructor
                   |default argument            |default argument
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/34758] [4.2/4.3/4.4 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-07-04 22:28 ` [Bug c++/34758] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-08-11 22:50 ` paolo dot carlini at oracle dot com
  2009-02-08 23:07 ` manu at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-11 22:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2008-08-11 22:49 -------
Not really actively working on it, sorry.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c++/34758] [4.2/4.3/4.4 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-08-11 22:50 ` paolo dot carlini at oracle dot com
@ 2009-02-08 23:07 ` manu at gcc dot gnu dot org
  2009-03-31 20:17 ` [Bug c++/34758] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-02-08 23:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from manu at gcc dot gnu dot org  2009-02-08 23:07 -------
Patch here:

http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00308.html


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |02/msg00308.html
           Keywords|                            |patch


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


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

* [Bug c++/34758] [4.3/4.4/4.5 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-02-08 23:07 ` manu at gcc dot gnu dot org
@ 2009-03-31 20:17 ` jsm28 at gcc dot gnu dot org
  2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:21 ` [Bug c++/34758] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2009-03-31 20:16 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3/4.4/4.5 regression]|[4.3/4.4/4.5 regression] Bad
                   |Bad diagnostic for circular |diagnostic for circular
                   |dependency in constructor   |dependency in constructor
                   |default argument            |default argument
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c++/34758] [4.3/4.4/4.5 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-03-31 20:17 ` [Bug c++/34758] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
@ 2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:21 ` [Bug c++/34758] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2009-08-04 12:28 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug c++/34758] [4.3/4.4/4.5/4.6 regression] Bad diagnostic for circular dependency in constructor default argument
  2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:21 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2010-05-22 18:11 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

end of thread, other threads:[~2010-05-22 18:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12 19:09 [Bug c++/34758] New: [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument reichelt at gcc dot gnu dot org
2008-01-12 19:10 ` [Bug c++/34758] " reichelt at gcc dot gnu dot org
2008-01-12 20:47 ` rguenth at gcc dot gnu dot org
2008-01-13  2:22 ` bangerth at dealii dot org
2008-01-17 20:37 ` pcarlini at suse dot de
2008-07-04 22:28 ` [Bug c++/34758] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-08-11 22:50 ` paolo dot carlini at oracle dot com
2009-02-08 23:07 ` manu at gcc dot gnu dot org
2009-03-31 20:17 ` [Bug c++/34758] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:38 ` rguenth at gcc dot gnu dot org
2010-05-22 18:21 ` [Bug c++/34758] [4.3/4.4/4.5/4.6 " rguenth 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).