egcs-1.1 extern "C" decl problem

Mumit Khan khan@xraylith.wisc.edu
Sun Sep 6 15:38:00 GMT 1998


The following trivial code now won't compile under egcs-1.1. This is
a regression from 1.0.3.

======== ext-c-bug.ii

# 1 "ext-c-bug.cc"
extern "C" foo ();

=====================

% gcc -c -v ext-c-bug.ii
Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.7.2.1.f.1/specs
gcc version 2.7.2.1.f.1
 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.7.2.1.f.1/cc1plus ext-c-bug.ii -quiet -version -o /var/tmp/cca29724.s
GNU C++ version 2.7.2.1.f.1 (hppa) compiled by GNU C version 2.7.2.1.f.1.
 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.7.2.1.f.1/as -o ext-c-bug.o /var/tmp/cca29724.s
ext-c-bug.cc:1: warning: ANSI C++ forbids declaration `' with no type
ext-c-bug.cc:1: abstract declarator `int' used as declaration

Regards,
Mumit




More information about the Gcc-bugs mailing list