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

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).