This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/40902] New: LTO doesn't merge CV differences properly
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2009 13:36:22 -0000
- Subject: [Bug lto/40902] New: LTO doesn't merge CV differences properly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>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