------- Comment #14 from reichelt at gcc dot gnu dot org  2008-01-26 14:32 
-------
But now we accept the IMHO invalid version:

file1.c:
  void foo() {}
file2.c:
  void foo() {}

GCC 4.0.x used to produce an error:

file2.c:1: error: redefinition of 'foo'
file1.c:1: error: previous definition of 'foo' was here


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Keywords|                            |accepts-invalid
         Resolution|FIXED                       |


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

Reply via email to