This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/87905] structures in two different cpp source files with same name get flagged by ODR warning
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Nov 2018 14:37:28 +0000
- Subject: [Bug lto/87905] structures in two different cpp source files with same name get flagged by ODR warning
- Auto-submitted: auto-generated
- References: <bug-87905-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87905
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
>
> Note in the test package that neither struct is exposed to the other
> translation unit.
But it's violation of C++ ODR and as LTO compilation unit is entire program,
you then introduce violation.