From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44203 invoked by alias); 26 Aug 2015 00:35:33 -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 44174 invoked by uid 48); 26 Aug 2015 00:35:28 -0000 From: "bgreen0 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67354] New: internal compiler error: in add_to_same_comdat_group, at symtab.c:421 Date: Wed, 26 Aug 2015 00:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bgreen0 at gmail dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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-08/txt/msg01792.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67354 Bug ID: 67354 Summary: internal compiler error: in add_to_same_comdat_group, at symtab.c:421 Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bgreen0 at gmail dot com Target Milestone: --- Created attachment 36255 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D36255&action=3Dedit preprocessor output The attached preprocessed code generates an internal compiler error when compiled with the -Os option. Tested with g++ 5.1 and 5.2. Preprocessed file attached. Here is the command line out output: $ g++ -v -save-temps -std=3Dgnu++11 -Wall -Wextra -Os -c -o gccbug.o gccbug= .cpp=20 Using built-in specs. COLLECT_GCC=3Dg++ Target: x86_64-unknown-linux-gnu Configured with: /build/gcc-multilib/src/gcc-5.2.0/configure --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=3Drelease --with-default-libstdcxx-abi=3Dgcc4-compatible Thread model: posix gcc version 5.2.0 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dgnu++11' '-Wall' '-Wextra'= '-Os' '-c' '-o' 'gccbug.o' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1plus -E -quiet -v -D_GNU_SO= URCE gccbug.cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dgnu++11 -Wall -Wextra -Os -fpch-preprocess -o gccbug.ii ignoring nonexistent directory "/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../x86_64-unknown-lin= ux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0 /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/x= 86_64-unknown-linux-gnu /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/b= ackward /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include /usr/local/include /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dgnu++11' '-Wall' '-Wextra'= '-Os' '-c' '-o' 'gccbug.o' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1plus -fpreprocessed gccbug.= ii -quiet -dumpbase gccbug.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase-strip gccbug.o -Os -Wall -Wextra -std=3Dgnu++11 -version -o gccbug.s GNU C++11 (GCC) version 5.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++11 (GCC) version 5.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 18422b8e6e00646fd4f8fbf484d27148 gccbug.cpp: In instantiation of =E2=80=98Test::Test(Args&& ...) [with Args = =3D {}]=E2=80=99: /usr/include/c++/5.2.0/ext/new_allocator.h:120:4: required from =E2=80=98= void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up =3D T= est; _Args =3D {}; _Tp =3D Test]=E2=80=99 /usr/include/c++/5.2.0/bits/alloc_traits.h:256:4: required from =E2=80=98= static std::_Require::__construct_helper<_T= p, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp =3D Test; _Args =3D {}; _Alloc =3D std::allocator; std::_Require::__construct_helper<_T= p, _Args>::type> =3D void]=E2=80=99 /usr/include/c++/5.2.0/bits/alloc_traits.h:402:16: required from =E2=80= =98static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with = _Tp =3D Test; _Args =3D {}; _Alloc =3D std::allocator; decltype (_S_const= ruct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) =3D ]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr_base.h:522:39: required from =E2=80=98std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args =3D {}; _Tp = =3D Test; _Alloc =3D std::allocator; __gnu_cxx::_Lock_policy _Lp =3D (__gnu_cxx::_Lock_policy)2u]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr_base.h:617:4: required from =E2=80=98std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag,= _Tp*, const _Alloc&, _Args&& ...) [with _Tp =3D Test; _Alloc =3D std::allocator; = _Args =3D {}; __gnu_cxx::_Lock_policy _Lp =3D (__gnu_cxx::_Lock_policy)2u]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr_base.h:1097:35: required from =E2=80=98std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag= , const _Alloc&, _Args&& ...) [with _Alloc =3D std::allocator; _Args =3D {}; = _Tp =3D Test; __gnu_cxx::_Lock_policy _Lp =3D (__gnu_cxx::_Lock_policy)2u]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr.h:319:64: required from =E2=80=98std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _= Alloc&, _Args&& ...) [with _Alloc =3D std::allocator; _Args =3D {}; _Tp =3D T= est]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr.h:614:39: required from =E2=80=98std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& = ...) [with _Tp =3D Test; _Alloc =3D std::allocator; _Args =3D {}]=E2=80=99 /usr/include/c++/5.2.0/bits/shared_ptr.h:629:39: required from =E2=80=98std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp =3D = Test; _Args =3D {}]=E2=80=99 gccbug.cpp:13:33: required from here gccbug.cpp:10:2: internal compiler error: in add_to_same_comdat_group, at symtab.c:421 } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >>From gcc-bugs-return-495651-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 26 06:02:11 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47208 invoked by alias); 26 Aug 2015 06:02:10 -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 47136 invoked by uid 48); 26 Aug 2015 06:02:05 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67219] [6 Regression] Incorrect conversion warning Date: Wed, 26 Aug 2015 06:02: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: NEW 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: cc 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-08/txt/msg01793.txt.bz2 Content-length: 856 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67219 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Joost.VandeVondele at mat dot ethz | |.ch --- Comment #3 from Joost VandeVondele --- It also depends on which value is used for 'huge_4', for example no warning like so: function foo(bar) integer(8) :: foo integer(4), intent(in) :: bar ! integer(4), parameter :: huge_4 = huge(0_4) integer(4), parameter :: huge_4 = 2**30 foo = (huge_4 - int(bar,kind=8)) end function there is also no valgrind warning for f951 compiling the testcase.