This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9285: [3.4 regression] False shadowing of parameters in templates


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]