[patch] PR c++/26151: duplicate 'duplicate' diagnostic

Mark Mitchell mark@codesourcery.com
Tue Feb 7 16:28:00 GMT 2006


Volker Reichelt wrote:

> The patch below therefore moves the patch from the parser to check_tag_decl
> in decl.c so that the second case is still diagnosed correctly.

I'd rather we go in the other direction; this is the kind of error that
should be issued in the parser.  (It makes sense to issue errors in
grokdeclarator for things that might arise erroneously from template
substitution, etc., but this is a purely syntactic thing.)  What if you
just remove the check in grokdeclarator?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list