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++ bug fixers: This may be low hanging fruit


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


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