>From 464.h264ref we can see that for

t1.c
const int i[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };

t2.c
extern int i[10];
int main () { return i[0]; }

we should merge both decls, retaining the const qualification (the middle-end
considers both types compatible, lto_symtab_compatible doesn't).


-- 
           Summary: LTO doesn't merge CV differences properly
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40902

Reply via email to