This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/20652] New: rejects code with an error: aliased to undefined symbol


------------------------------------------------------------------------------
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]