This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9285: [3.4 regression] False shadowing of parameters in templates
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mmitchel at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wlandry at ucsd dot edu
- Date: 13 Jan 2003 00:09:04 -0000
- Subject: Re: c++/9285: [3.4 regression] False shadowing of parameters in templates
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mmitchel at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wlandry at ucsd dot edu, gcc-gnats at gcc dot gnu dot org
Old Synopsis: REGRESSION: False shadowing of parameters in templates
New Synopsis: [3.4 regression] False shadowing of parameters in templates
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: bangerth
Responsible-Changed-When: Sun Jan 12 16:09:04 2003
Responsible-Changed-Why:
Author of the new parser.
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Sun Jan 12 16:09:04 2003
State-Changed-Why:
This is a reduced testcase:
------------------------
struct X{
X(double *data, double d0, double d1);
};
int foo(double d0) {
double * data;
X(data,d0,d0);
}
----------------------------
It compiled with a snapshot from 2002-12-25, but fails now.
Probably due to the new parser.
Present compilers say
regression/test> ../bin/gcc-2003-01-05/bin/c++ -c PR9285.cc
PR9285.cc: In function `int foo(double)':
PR9285.cc:7: error: declaration of `d0' shadows a parameter
PR9285.cc:7: error: no matching function for call to `X::X()'
PR9285.cc:1: error: candidates are: X::X(const X&)
PR9285.cc:2: error: X::X(double*, double, double)
PR9285.cc:7: error: expected init-declarator
PR9285.cc:7: error: expected `,' or `;'
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9285