This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ bug fixers: This may be low hanging fruit
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 01 Nov 2002 18:15:28 +0100
- Subject: Re: C++ bug fixers: This may be low hanging fruit
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0211010820080.973-100000@gandalf.ticam.utexas.edu>
Wolfgang Bangerth <bangerth@ticam.utexas.edu> writes:
| I bet that this is actually something you may want to do if you have 5
| minutes left before your bus leaves :-) c++/2708 is about accepting
| struct A {};
| namespace A {};
I looked at this particular bug several times in the past. Basically,
it seems to come from the fact that the whole cp/decl{, 2}.c where
copied from the C-front-end with no appropriate ajustement when C++
was extended with the notion of namespace -- actually, the Unique Name
definition rule seems to be violated in several parts of the compiler.
(xref() and xref_tag() at least ought to be adjusted).
At that time, I couldn't come up with a non "disturbing" patch.
If this is a release-blocking issue I would propose to downgrade it to
medium (as the core issue is spread over the compiler, the above PR is
just a symptome) and have it fixed in 3.4. Jason, Mark?
-- Gaby