[Bug c++/106825] New: header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example

2022-09-04 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 Bug ID: 106825 Summary: header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M _relea

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-09-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #4 from Brecht Sanders --- Any update on this issue? I see performance complaints from several people in GCC12+MinGW-w64 being much slower in the build without precompiled headers (see: https://github.com/brechtsanders/winlibs_ming

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #9 from Jakub Jelinek --- (In reply to Aldy Hernandez from comment #7) > ?? And if we keep NAN signs up to date, maybe just maybe, we can return a > NAN from singleton_p() if we're sure about the sign. ISTM we should be able > to pr

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #10 from Aldy Hernandez --- Got it. Less work for me :-). Thanks for the explanation.

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #11 from Aldy Hernandez --- I'll just fix union and implement copysign folding and leave it at that.

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-09-04 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #5 from Brecht Sanders --- I believe this is issue is cause by the fact that mmap is missing on Windows. In gcc/ggc-common.cc this causes use of default_gt_pch_get_address() as HOST_HOOKS_GT_PCH_GET_ADDRESS which just returns NULL

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 --- Comment #1 from David Binderman --- It seems that flag -O2 can be reduced to -O1 -fexpensive-optimizations.

[Bug c++/106825] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example

2022-09-04 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 --- Comment #1 from Mark Millard --- (In reply to Mark Millard from comment #0) FYI: I also see this on FreeBSD via the lang/gcc12 port (that, in my installed context, is at 12.2.0), using the default library: libstdc++ . I do not see any fail

[Bug c++/106825] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example

2022-09-04 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 --- Comment #2 from Mark Millard --- An tiny example that avoids all involvement of libstdc++ is (showing g++12 from FreeBSD in the comments, instead of c++ for fedora --but both contexts fail): # more module_template_specialization_failure.cpp

[Bug c++/105667] [C++20] lambas in template argument sometimes causes an ICE (seg fault)

2022-09-04 Thread pobrn at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105667 Barnabás Pőcze changed: What|Removed |Added CC||pobrn at protonmail dot com --- Commen

[Bug c++/106825] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example

2022-09-04 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 --- Comment #3 from Mark Millard --- (In reply to Mark Millard from comment #2) . . . > export module module_template_specialization_intf; > > export template int test(); > export template<> int test<0>() { return -1; }; > export template<

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #12 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #9) > There are e.g. 2^23-1 different sNaNs and 2^23 different qNaNs in binary32 > format. 2^23-2 sNaNs actually ;)

[Bug c++/106826] New: [modules] Variable template of type trait via importable header gives wrong result

2022-09-04 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106826 Bug ID: 106826 Summary: [modules] Variable template of type trait via importable header gives wrong result Product: gcc Version: 13.0 Status: UNCONFIRMED Keywo

[Bug target/105731] superfluous second operation before conditional branch -O2 -mcpu=cortex-m0plus

2022-09-04 Thread bugzilla--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105731 Kio changed: What|Removed |Added Version|10.3.1 |11.2.1 --- Comment #6 from Kio --- i just came a

[Bug target/106827] New: operator++ doesn't work for enum -O2 -mcpu=cortex-m0plus

2022-09-04 Thread bugzilla--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106827 Bug ID: 106827 Summary: operator++ doesn't work for enum -O2 -mcpu=cortex-m0plus Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal P

[Bug c++/106825] header unit based std::shared_ptr<...>(...) use gets: undefined reference to `std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()', aarch64 example

2022-09-04 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106825 --- Comment #4 from Mark Millard --- (In reply to Mark Millard from comment #3) . . . > I'll also report that the tiny test also fails for clang++15 > (from FreeBSD's devel/llvm15 port) . . . Not true: I figured out that, for how the clang++15

[Bug target/106827] operator++ doesn't work for enum -O2 -mcpu=cortex-m0plus

2022-09-04 Thread bugzilla--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106827 --- Comment #1 from Kio --- updated link at godbolt: https://godbolt.org/z/5sf7cr9c3

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 --- Comment #2 from David Binderman --- After more than 13 hours of reduction, the C++ code seems to be: using int32 = int; using int64 = long; float NoWeight___trans_tmp_2; int ShortestPath_distance; struct FloatWeightTpl { FloatWeightTpl(fl

[Bug other/106814] [13 regression] r13-2266-g8bb1df032cc080 breaks some mpfr tests

2022-09-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106814 Aldy Hernandez changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 David Binderman changed: What|Removed |Added CC||aldyh at gcc dot gnu.org --- Comment

[Bug fortran/100136] [11/12/13 Regression] ICE, regression, using flag -fcheck=pointer

2022-09-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100136 --- Comment #7 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:20d30e737ad79dc36817e59f1676aa8bc0c6b325 commit r13-2397-g20d30e737ad79dc36817e59f1676aa8bc0c6b325 Author: José Rui Faustino de Sou

[Bug c/106762] incorrect array bounds warning (-Warray-bounds) at -O2 on memset()

2022-09-04 Thread para at tampabay dot rr.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106762 --- Comment #2 from Matt Taylor --- Yes, the test case is immensely reduced from the original code. However, there are still three problems. First, the warning fails to note that the array bounds _could_ be [0,0] and implies that they are _alway

[Bug c/106762] incorrect array bounds warning (-Warray-bounds) at -O2 on memset()

2022-09-04 Thread para at tampabay dot rr.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106762 --- Comment #3 from Matt Taylor --- Actually one thing that I said before does not make sense. I said that the analysis seems to allow a 1 byte write to NULL but not 2 or more. However, the warning does not trigger if the offset of the field in

[Bug sanitizer/106828] New: cc1plus: warning: '-fsanitize=address' not supported for this target for loongarch64-linux-gnu

2022-09-04 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106828 Bug ID: 106828 Summary: cc1plus: warning: '-fsanitize=address' not supported for this target for loongarch64-linux-gnu Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug target/106828] cc1plus: warning: '-fsanitize=address' not supported for this target for loongarch64-linux-gnu

2022-09-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106828 --- Comment #1 from Andrew Pinski --- The fix is to define the target hook for Asan address.

[Bug target/106640] [13 Regression] during RTL pass: stv ICE: RTL check: expected elt 1 type 'i' or 'n', have 'e' (rtx ashift) in compute_convert_gain, at config/i386/i386-features.cc:1251/1285

2022-09-04 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106640 Roger Sayle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-09-04 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 --- Comment #4 from marshal --- (In reply to marshal from comment #0) > int main() > { > int i = 4; > for (_Static_assert (3, "This is a three"); i < 7; i++) { > i += 2; > } > } > > > Gcc can build successfully, but it doe

[Bug c++/106269] the "operator delete" selection does not follow c++ spec

2022-09-04 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106269 --- Comment #2 from marshal --- (In reply to marshal from comment #0) > #include > #include > > void operator delete[]( void* ptr ) noexcept { > std::cout << "delete with 1 parameters==" << std::endl; > ::o

[Bug c++/106829] New: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222

2022-09-04 Thread xw111luoye at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106829 Bug ID: 106829 Summary: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c/106830] New: [13 Regression] ICE: in tree_to_uhwi, at tree.cc:6392 (from check_for_xor_used_as_pow)

2022-09-04 Thread zsojka at seznam dot cz via Gcc-bugs
-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220904 (experimental) (GCC)

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 --- Comment #4 from Aldy Hernandez --- Yeah, that's all me. I can't reproduce on x86-64, but there's been a couple patches in this area over the weekend. Could you double check again on an updated trunk?

[Bug target/106742] ICE in gen_lowpart_general, at rtlhooks.cc:57, or ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.cc:21870

2022-09-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106742 --- Comment #2 from CVS Commits --- The master branch has been updated by Kong Lingling : https://gcc.gnu.org/g:092763fd0c069f3a7c05a65238d3815e8daab76b commit r13-2400-g092763fd0c069f3a7c05a65238d3815e8daab76b Author: konglin1 Date: Mon Se

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 --- Comment #5 from David Binderman --- (In reply to Aldy Hernandez from comment #4) > Could you double check again on an updated trunk? Problem seems to have gone away on today's trunk.

[Bug target/106742] ICE in gen_lowpart_general, at rtlhooks.cc:57, or ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.cc:21870

2022-09-04 Thread lingling.kong7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106742 --- Comment #3 from kong lingling --- Fixed in GCC13.

[Bug c++/106824] ice in set_nan, at value-range.cc:283

2022-09-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106824 Aldy Hernandez changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---