From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76624 invoked by alias); 19 May 2015 17:56:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 76524 invoked by uid 48); 19 May 2015 17:56:20 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/66180] [6 Regression] many -Wodr false positives when building LLVM with -flto Date: Tue, 19 May 2015 17:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01550.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66180 --- Comment #4 from Jan Hubicka --- /home/trippels/gcc_6/usr/local/include/c++/6.0.0/bits/stl_pair.h:96:12: warning: type =E2=80=98struct pair=E2=80=99 violates one definition rule [-= Wodr] struct pair ^ /home/trippels/gcc_6/usr/local/include/c++/6.0.0/bits/stl_pair.h:96:12: not= e: a different type is defined in another translation unit struct pair ^ /home/trippels/gcc_6/usr/local/include/c++/6.0.0/bits/stl_pair.h:102:11: no= te: the first difference of corresponding definitions is field =E2=80=98second= =E2=80=99 _T2 second; /// @c second is a copy of the second obj= ect ^ /home/trippels/gcc_6/usr/local/include/c++/6.0.0/bits/stl_pair.h:102:11: no= te: a field of same name but different type is defined in another translation u= nit _T2 second; /// @c second is a copy of the second obj= ect ^ /home/trippels/llvm/tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp:= 131:10: note: type =E2=80=98struct GroupInfo=E2=80=99 defined in anonymous namespac= e can not match type =E2=80=98struct GroupInfo=E2=80=99 struct GroupInfo { ^ /home/trippels/llvm/tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp:7= 3:8: note: the incompatible type defined in anonymous namespace in another translation unit struct GroupInfo { ^ This looks like a real LLVM bug. If you do=20 class bar { anonymous_namespace_type foo;=20 } then definin bar in non-anonymous namespace in more than one unit is ODR violation (because the type of field FOO is different in each of units). I think that it is what the warning is about: the instantiation is non-anonym= ous of type _T2=3DGroupInfo that is anonymous. >>From gcc-bugs-return-486711-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 19 18:00:38 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120495 invoked by alias); 19 May 2015 18:00:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120341 invoked by uid 55); 19 May 2015 18:00:30 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66045] ICE on incorrect code with null Date: Tue, 19 May 2015 18:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01551.txt.bz2 Content-length: 776 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66045 --- Comment #3 from kargl at gcc dot gnu.org --- Author: kargl Date: Tue May 19 17:59:58 2015 New Revision: 223406 URL: https://gcc.gnu.org/viewcvs?rev=223406&root=gcc&view=rev Log: 2015-05-19 Steven G. Kargl PR fortran/66045 * expr.c (gfc_check_assign): Check for assignment of NULL() instead of the (intended) pointer assignment. 2015-05-19 Steven G. Kargl PR fortran/66045 * gfortran.dg/null1.f90: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/null1.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/expr.c branches/gcc-5-branch/gcc/testsuite/ChangeLog