This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5685: g++ 3.0.2 allows multiple identical declaration of default argument
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rhu at tk dot eq dot gs dot com
- Date: 17 Feb 2002 17:24:37 -0000
- Subject: Re: c++/5685: g++ 3.0.2 allows multiple identical declaration of default argument
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rhu at tk dot eq dot gs dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ 3.0.2 allows multiple identical declaration of default argument
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sun Feb 17 09:24:36 2002
State-Changed-Why:
You are right, this should be an error, according to [8.3.6].
If you compile with the -pedantic switch, you will get
a warning, but this should still be an error.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5685