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