[Bug c/98418] New: Valid integer constant expressions based on expressions that trigger -Wshift-overflow are treated as non-constants

2020-12-22 Thread pskocik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98418 Bug ID: 98418 Summary: Valid integer constant expressions based on expressions that trigger -Wshift-overflow are treated as non-constants Product: gcc Version:

[Bug fortran/92621] Problems with memory handling with allocatable intent(out) arrays with bind(c)

2020-12-22 Thread briggs.michaels at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 --- Comment #5 from Michael Briggs --- Created attachment 49835 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49835=edit C portion of test case The second part of an additional test case.

[Bug fortran/92621] Problems with memory handling with allocatable intent(out) arrays with bind(c)

2020-12-22 Thread briggs.michaels at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 Michael Briggs changed: What|Removed |Added CC||briggs.michaels at gmail dot com ---

[Bug c++/98419] New: wrong code when destructor of local variable modifies returned object

2020-12-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98419 Bug ID: 98419 Summary: wrong code when destructor of local variable modifies returned object Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-22 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #6 from Nathan Sidwell --- FWIW my build server is CentOS Stream release 8 (x86_64), so it seems something's different in your setup. The toplevel make knows that libcody must be built before gcc. Perhaps the libcody build is

[Bug c++/98419] wrong code when destructor of local variable modifies returned object

2020-12-22 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98419 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #1

[Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie

2020-12-22 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98324 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #3 from Nathan

[Bug fortran/92621] Problems with memory handling with allocatable intent(out) arrays with bind(c)

2020-12-22 Thread briggs.michaels at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 --- Comment #7 from Michael Briggs --- Comment on attachment 49834 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49834 fortran portion of test case First part of a two part test case, Fortran & C. The bug appears as: malloc: *** error

[Bug c++/98417] ICE when using C++ modules and -g

2020-12-22 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98417 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-12-22 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 Uroš Bizjak changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug bootstrap/98412] libcody does not compile with older GCC versions

2020-12-22 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98412 --- Comment #10 from Nathan Sidwell --- Gerald got their first: * 7e63d383b89 2020-12-22 | c++: Fix build with clang

[Bug fortran/92621] Problems with memory handling with allocatable intent(out) arrays with bind(c)

2020-12-22 Thread briggs.michaels at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 --- Comment #6 from Michael Briggs --- Comment on attachment 49834 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49834 fortran portion of test case An additional test case, in two parts: Fortran & C. The bug appears as: malloc: ***

[Bug c/98418] Valid integer constant expressions based on expressions that trigger -Wshift-overflow are treated as non-constants

2020-12-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98418 --- Comment #1 from Andrew Pinski --- Shifting into the sign bit is problematic. I cant remember the exact rules. Using ull is valid though.

[Bug c++/98348] GCC 10.2 AVX512 Mask regression from GCC 9

2020-12-22 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98348 --- Comment #13 from Hongtao.liu --- Created attachment 49832 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49832=edit gcc11-pr98348_v3.patch 1. Use REAL_VALUE_TO_TARGET_SINGLE/DOUBLE in the "float_vector_all_ones_operands" predicate, it

[Bug c++/98417] New: -internal compiler error when using -g

2020-12-22 Thread patrick.kox at commandoregel dot be via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98417 Bug ID: 98417 Summary: -internal compiler error when using -g Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug tree-optimization/98415] [11 Regression] GCC crashes on Linux kernel build after r11-6271-g69165332a914f1167c3077fa1f57afc64fd8a667

2020-12-22 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98415 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org

[Bug target/97847] [11 Regression] ICE in insert_insn_on_edge, at cfgrtl.c:1976

2020-12-22 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97847 --- Comment #5 from Martin Liška --- @Vladimir: Can you please take a look?

[Bug libstdc++/98384] new test case 20_util/to_chars/long_double.cc in r11-6249 fails on powerpc64 BE

2020-12-22 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98384 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-22 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341 --- Comment #2 from John Paul Adrian Glaubitz --- I have started to bisect this now. aa80d0650ce612d88a62d072b63c2523d547fca8 is still good while HEAD is broken. It will take a while until I have a result as I have to perform this bisecting on

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-22 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341 --- Comment #3 from Marius Hillenbrand --- Potential duplicate: I have seen very similar errors on s390x while reproducing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98228 There, bisecting lead back to d119f34c952f ("New modref/ipa_modref

[Bug libstdc++/98421] New: std::span does not detect invalid range in Debug Mode

2020-12-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98421 Bug ID: 98421 Summary: std::span does not detect invalid range in Debug Mode Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/98420] New: Invalid simplification of x - x with -frounding-math

2020-12-22 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98420 Bug ID: 98420 Summary: Invalid simplification of x - x with -frounding-math Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/97827] bootstrap error building the amdgcn-amdhsa offload compiler with LLVM 11

2020-12-22 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97827 --- Comment #12 from Matthias Klose --- Fyi, this is still seen with LLVM 11.0.1 rc2

[Bug ada/98228] [11 Regression] ICE: Assert_Failure atree.adb:931: Error detected at s-gearop.adb:382:34 [a-ngrear.adb:313:7 [a-nllrar.ads:18:1]] on s390x-linux-gnu

2020-12-22 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98228 --- Comment #8 from Marius Hillenbrand --- Potential duplicate observed for m68k: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341 Very similar error messages during bootstrap with lto.

[Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-12-22 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #19 from Uroš Bizjak --- https://gcc.gnu.org/g:337ed0eb490b14899f4049bc4c8922eb1d8a2e67 commit r11-6303-g337ed0eb490b14899f4049bc4c8922eb1d8a2e67 Author: Uros Bizjak Date: Tue Dec 22 18:13:24 2020 +0100 i386: Fix

[Bug c++/93480] Defaulted <=> doesn't expand array elements

2020-12-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ffd454b92ba6ff5499cf57f82a2b0f4cee59978c commit r11-6305-gffd454b92ba6ff5499cf57f82a2b0f4cee59978c Author: Jakub Jelinek Date:

[Bug c++/93480] Defaulted <=> doesn't expand array elements

2020-12-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/85877] [8/9/10/11 Regression] ICE in fold_convert_loc, at fold-const.c:2449

2020-12-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85877 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug c++/98130] [11 regression] placement new fails on webkit-gtk-2.28.4 since r11-4745-g58c9de46541ade79

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

2020-12-22 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96793 --- Comment #20 from Uroš Bizjak --- https://gcc.gnu.org/g:0bf0e0b86d3e2f12555479096baaf0ca7a9f7ac6 commit r10-9164-g0bf0e0b86d3e2f12555479096baaf0ca7a9f7ac6 Author: Uros Bizjak Date: Tue Dec 22 21:11:51 2020 +0100 i386: Fix

[Bug c++/96045] [11 Regression] Wrong line and column diagnostic message in a class template instantiation

2020-12-22 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96045 Nathan Sidwell changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org

[Bug c++/96333] [10/11 Regression] Regression on concepts constraint checking

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96333 Jason Merrill changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #22 from anlauf at gcc dot gnu.org --- The -fdump-fortran-original of the last example in comment#21 contains symtree: 'z' || symbol: 'z' type spec : (DERIVED t) attributes: (VARIABLE IMPLICIT-SAVE

[Bug c++/98416] POWER8: SIGILL handler does not restart properly after signal using GCC 10.2.1

2020-12-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98416 --- Comment #4 from Andrew Pinski --- You need to use the target atrribute on CPU_ProbePower9 so GCC won't use power9 instructions on it. Something like: bool CPU_ProbePower9() __attribute__((target("cpu=power7"))); bool CPU_ProbePower9()

[Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 --- Comment #2 from Jason Merrill --- (In reply to Martin Liška from comment #1) > Started with r6-7607-g52228180f1e50cbb. Rather, with r10-986-g9b9eb42a4168c342e5cd71b13d21e63ba7e1b7ab.

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #25 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #24) > (In reply to anlauf from comment #21) > Looks like the patch from comment #2 that I posted 9 years ago. LoL. > Bug must not hit real code too often as no

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #27 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #26) > (In reply to kargl from comment #23) > > (In reply to anlauf from comment #21) > > > There's also valid code that ICEs, and invalid code that is silently >

[Bug c++/97704] [11 Regression][concepts] Not working with explicit types in function signatures?

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97704 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/96045] [11 Regression] Wrong line and column diagnostic message in a class template instantiation

2020-12-22 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96045 --- Comment #3 from Jason Merrill --- Nathan, this PR points out that your change to EOF location means that we no longer show the last line of source to give context for the error. Why not give the EOF token a location of the end of the last

[Bug c++/98419] wrong code when destructor of local variable modifies returned object

2020-12-22 Thread leni536 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98419 --- Comment #2 from Lénárd Szolnoki --- This is probably invalid, I wasn't aware of http://eel.is/c++draft/class.temporary#3 > When an object of class type X is passed to or returned from a function, if X > has at least one eligible copy or

[Bug fortran/92065] [8/9/10/11 Regression] internal compiler error: in expand_expr_real_1

2020-12-22 Thread drikosev at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92065 --- Comment #22 from Ev Drikos --- Created attachment 49836 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49836=edit module + driver A slightly modified example gives me the impression that some local objects that are class arrays share

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #24 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #21) > > And after fixing an obvious NULL pointer dereference, > > diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c > index

[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

2020-12-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49278 --- Comment #26 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #23) > (In reply to anlauf from comment #21) > > There's also valid code that ICEs, and invalid code that is silently > > accepted. > > > > Invalid code: > > > >

[Bug c/98029] [11 Regression] volatile triggers incorrect "warning: right-hand operand of comma expression has no effect [-Wunused-value]" since r11-5188-g32934a4f45a72144

2020-12-22 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98029 --- Comment #3 from Martin Uecker --- It seems this does not happen anymore after fixing PR98047.

[Bug c++/98413] [11 Regression] ICE with placement new since r11-3827-g83685efd5fd1623c

2020-12-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98413 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug libstdc++/79700] std::fabsf and std::fabsl missing from

2020-12-22 Thread kip at thevertigo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700 Kip Warner changed: What|Removed |Added CC||kip at thevertigo dot com --- Comment #5

[Bug c++/98422] New: C++ 20 module ICE with lto

2020-12-22 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98422 Bug ID: 98422 Summary: C++ 20 module ICE with lto Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug libstdc++/98370] libstdc++-v3/src/c++17/floating_to_chars.cc fails to compile unless `int32_t' is `int'

2020-12-22 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98370 Hans-Peter Nilsson changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98423] New: The defaulted default constructor defined as deleted when one of variant member has a default member initializer

2020-12-22 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98423 Bug ID: 98423 Summary: The defaulted default constructor defined as deleted when one of variant member has a default member initializer Product: gcc Version:

[Bug c++/98424] New: The point of destroying temporary objects when initializing an array

2020-12-22 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98424 Bug ID: 98424 Summary: The point of destroying temporary objects when initializing an array Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-22 Thread hliu at amperecomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #7 from Hao Liu --- I found that: 1. "make -j1" can pass, but "make -j8" always fails. It seems something wrong with parallel build 2. When "make -j8" failed, if I try "make -j8" again, it can pass. > What happens if you cd into

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-22 Thread hliu at amperecomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #8 from Hao Liu --- Hi Nathan, The problem is related to use another make binary, which is 4.2.0 and built by ourselves. Maybe there is a strange bug. Anyway, after using the system installed make (which is 4.2.1 and under