c++/4429: certain member variables that shadow template parameters cause ice.

bangerth@dealii.org bangerth@dealii.org
Thu Oct 31 14:08:00 GMT 2002


Synopsis: certain member variables that shadow template parameters cause ice.

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Oct 31 14:08:17 2002
State-Changed-Why:
    With 3.3pre, I now get
    tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -W -Wall -c y.cc
    y.cc:6: warning: `static' is not at beginning of declaration
    y.cc:6: error: declaration of `const MyClass TestTemplate<type>::type[]'
    y.cc:4: error:  shadows template parm `char type'
    
    It still fails with 3.2.1, but is not a regression.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4429



More information about the Gcc-prs mailing list