This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20652] New: rejects code with an error: aliased to undefined symbol
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2005 23:58:11 -0000
- Subject: [Bug c/20652] New: rejects code with an error: aliased to undefined symbol
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------------------------------------------------------------------------------
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