------- Comment #4 from joseph at codesourcery dot com  2007-10-26 14:45 -------
Subject: Re:   New: Empty macro definitions not
 considered equal

On Fri, 26 Oct 2007, rguenth at gcc dot gnu dot org wrote:

> #define A(a)
> #define A(b)
> 
> g++-4.3  -S t.C
> t.C:2:1: error: "A" redefined
> t.C:1:1: error: this is the location of the previous definition
> 
> We check the parameter names before the expansion, but if the expansion is
> empty in both cases there is no need to warn about different names.

Both C and C++ require diagnostics here, my interpretation being that they 
are required even if the only spelling difference is a different UCN for 
the same identifier (bug 9449 comment 39).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33907

Reply via email to