------- Comment #9 from tbm at cyrius dot com 2006-07-15 10:18 -------
(In reply to comment #6)
> Could I get clarification if the following error is a desired effect of this
> change. Prior to this, the included program gave no error. I believe the
> change was caused by this patch.
>
> e.c:1: error: previous declaration of 'int i' with 'C++' linkage
> e.c:4: error: conflicts with new declaration with 'C' linkage
>
> [hpclear8] $ cat e.c
>
> extern int i;
>
> extern "C" {
> extern int i;
> }
So apparently this is invalid code. However, I feel very strongly that a point
release of GCC should *not* introduce a new error - Mark, please modify the
patch applied to the 4.1 branch in a way to allow this code.
--
tbm at cyrius dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227