------------------------------------------------------------------------------ extern int foo; extern int bar __attribute__ ((alias ("foo"))); ------------------------------------------------------------------------------
$ gcc foo.i foo.i:2: error: ‘bar’ aliased to undefined symbol ‘foo’ $ this code is taken from glibc/sysdeps/wordsize-64/wcstol_l.c and it was accepted by gcc 3.4 and earlier. -- Summary: rejects code with an error: aliased to undefined symbol Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: belyshev at depni dot sinp dot msu dot ru CC: gcc-bugs at gcc dot gnu dot org,rth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20652