[Bug middle-end/104854] -Wstringop-overread should not warn for strnlen, strndup and strncmp

2022-03-14 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104854 --- Comment #8 from Siddhesh Poyarekar --- (In reply to Martin Sebor from comment #7) > Moving warnings into the analyzer and scaling it up to be able to run by > default, during development, sounds like a good long-term plan. Until that

[Bug target/104894] [11/12 Regression] ICE with -fno-plt -mcpu=power10 on PowerPC64 LE Linux

2022-03-14 Thread amodra at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104894 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com Last

[Bug target/103743] PPC: Inefficient equality compare for large 64-bit constants having only 16-bit relevant bits in high part

2022-03-14 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103743 Jiu Fu Guo changed: What|Removed |Added CC||guojiufu at gcc dot gnu.org --- Comment

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-14 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 --- Comment #7 from jim x --- In a simple way, the rule just requires that, for a function template, the template parameter that is declared after a template parameter pack should either appear in the parameter-declaration-clause before the

[Bug target/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2022-03-14 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #41 from Hongtao.liu --- (In reply to Richard Biener from comment #22) > (In reply to Hongtao.liu from comment #21) > > Now we have SLP node available in vector cost hook, maybe we can do sth in > > cost model to prevent

[Bug target/80640] Missing memory side effect with __atomic_thread_fence (2)

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80640 Andrew Pinski changed: What|Removed |Added CC||tomash.brechko at gmail dot com ---

[Bug target/55690] On some targets thread_fence is not a compiler barrier when memmodel != MEMMODEL_SEQ_CST

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55690 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c++/104924] bad_variant_access When using iostream and variant as modules

2022-03-14 Thread yunior.eury at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924 --- Comment #2 from Lorenzo Gomez --- (In reply to Andrew Pinski from comment #1) > C++ modules in GCC 11 (and it looks like 12 but some bugs have been fixed > there) is still considered experimental and your mileage on this feature > will

[Bug target/80640] Missing memory side effect with __atomic_thread_fence (2)

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80640 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/104924] bad_variant_access When using iostream and variant as modules

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924 --- Comment #1 from Andrew Pinski --- C++ modules in GCC 11 (and it looks like 12 but some bugs have been fixed there) is still considered experimental and your mileage on this feature will varry. Note I have not checked to see if this has

[Bug c++/104924] New: bad_variant_access When using iostream and variant as modules

2022-03-14 Thread yunior.eury at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104924 Bug ID: 104924 Summary: bad_variant_access When using iostream and variant as modules Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/104077] bogus/missing -Wdangling-pointer

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104077 Bug 104077 depends on bug 104436, which changed state. Bug 104436 Summary: [12 Regression] spurious -Wdangling-pointer assigning local address to a class passed by value https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104436 What

[Bug middle-end/104436] [12 Regression] spurious -Wdangling-pointer assigning local address to a class passed by value

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104436 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/104436] [12 Regression] spurious -Wdangling-pointer assigning local address to a class passed by value

2022-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104436 --- Comment #4 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:373a2dc2be0089ae59b61202a6023458aaaf63d8 commit r12-7650-g373a2dc2be0089ae59b61202a6023458aaaf63d8 Author: Martin Sebor Date:

[Bug middle-end/103483] [12 regression] context-sensitive ranges change triggers stringop-overread

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 --- Comment #23 from Martin Sebor --- (In reply to Richard Biener from comment #22) Your question may have been rhetorical but to be explicit, the real difference is hidden in the implementation (which is why these warnings can sometimes seem

[Bug c++/104008] [11/12 Regression] New g++ folly compile error since r11-7931-ga2531859bf5bf6cf

2022-03-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org

[Bug target/104923] MMA __builtin_mma_disassemble_acc test case ICEs in LRA

2022-03-14 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104923 Peter Bergner changed: What|Removed |Added Target Milestone|--- |12.0 CC|

[Bug target/104923] MMA __builtin_mma_disassemble_acc test case ICEs in LRA

2022-03-14 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104923 Peter Bergner changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |bergner at gcc dot gnu.org

[Bug target/104923] New: MMA __builtin_mma_disassemble_acc test case ICEs in LRA

2022-03-14 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104923 Bug ID: 104923 Summary: MMA __builtin_mma_disassemble_acc test case ICEs in LRA Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/97592] Incorrectly set pointer remapping with array pointer argument to CONTIGUOUS dummy

2022-03-14 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592 --- Comment #3 from anlauf at gcc dot gnu.org --- It looks like argument association is confused here. (The F2018 reference is 15.5.2.3 and 15.5.2.4). The following patch appears to fix the testcase: diff --git a/gcc/fortran/trans-expr.cc

[Bug testsuite/103324] RFE: Add a `make quickcheck` or `make smoketest` Makefile target to allow only running a portion of the testsuite

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103324 --- Comment #7 from Jonathan Wakely --- (In reply to Eric Gallager from comment #5) > So, now I'm running the testsuite anyways for other reasons, and one more > thing to note is that using any sort of parallelism when running the > testsuite

[Bug target/55690] On some targets thread_fence is not a compiler barrier when memmodel != MEMMODEL_SEQ_CST

2022-03-14 Thread schuchart at icl dot utk.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55690 --- Comment #2 from Joseph --- Created attachment 52626 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52626=edit Reproducer I created a reproducer (see attached file or online: https://godbolt.org/z/n76K3Ejds). Note that the acquire

[Bug d/104911] [12 regression] Comparison failure in gcc/d/typesem.o etc.

2022-03-14 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104911 --- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #2 from Iain Buclaw --- > That's interesting. I've just done a build of > 54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75 (20220301) and I get the same > comparison failure.

[Bug middle-end/104854] -Wstringop-overread should not warn for strnlen, strndup and strncmp

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104854 --- Comment #7 from Martin Sebor --- Moving warnings into the analyzer and scaling it up to be able to run by default, during development, sounds like a good long-term plan. Until that happens, rather than gratuitously removing warnings that

[Bug target/104890] [12 Regression] fails to build the 32bit libgcc on x86_64-linux-gnu (--enable-cet --with-arch-32=i686)

2022-03-14 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890 H.J. Lu changed: What|Removed |Added Attachment #52620|0 |1 is obsolete|

[Bug tree-optimization/104922] bogus -Wformat-overflow=2 due to missing range for related variables

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104922 Martin Sebor changed: What|Removed |Added Keywords|lto |missed-optimization Ever

[Bug tree-optimization/104922] bogus -Wformat-overflow=2 due to missing range for related variables

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104922 Bug 104922 depends on bug 104746, which changed state. Bug 104746 Summary: False positive for -Wformat-overflow=2 since r12-7033-g3c9f762ad02f398c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104746 What|Removed

[Bug tree-optimization/104746] False positive for -Wformat-overflow=2 since r12-7033-g3c9f762ad02f398c

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104746 Martin Sebor changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug tree-optimization/104922] New: bogus -Wformat-overflow=2 due to missing range for related variables

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104922 Bug ID: 104922 Summary: bogus -Wformat-overflow=2 due to missing range for related variables Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

[Bug c++/103524] [meta-bug] modules issue

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 99541, which changed state. Bug 99541 Summary: ICE when reading a module https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99541 What|Removed |Added

[Bug c++/99541] ICE when reading a module

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99541 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/104854] -Wstringop-overread should not warn for strnlen, strndup and strncmp

2022-03-14 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104854 --- Comment #6 from Siddhesh Poyarekar --- (In reply to Martin Sebor from comment #5) > It would be useful to separate these warnings into multiple levels: level 1 > for invalid code, and higher levels for suspicious (or pointless) code, >

[Bug tree-optimization/104746] False positive for -Wformat-overflow=2 since r12-7033-g3c9f762ad02f398c

2022-03-14 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104746 Andrew Macleod changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug target/104335] [12 regression] build failure if go is included in languages after r12-6747

2022-03-14 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104335 seurer at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[Bug c++/104920] Unreliable results with memset-elt-size

2022-03-14 Thread kouhzadi at rohumm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 Ali Kouhzadi changed: What|Removed |Added Resolution|--- |WORKSFORME

[Bug tree-optimization/98335] [9/10/11/12 Regression] Poor code generation for partial struct initialization

2022-03-14 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98335 Roger Sayle changed: What|Removed |Added Target Milestone|9.5 |12.0 Resolution|---

[Bug c/83840] missing -Wmemset-elt-size with address of array element

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83840 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Last

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

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

[Bug c++/104920] Unreliable results with memset-elt-size

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 --- Comment #4 from Jakub Jelinek --- E.g. in the above #c0 testcase, you can see it in the -fdump-tree-gimple dump: memset (, 0, 10); _1 = std::array::data (); memset (_1, 0, 10); For the arr case, the FE can see the

[Bug d/104911] [12 regression] Comparison failure in gcc/d/typesem.o etc.

2022-03-14 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104911 --- Comment #2 from Iain Buclaw --- That's interesting. I've just done a build of 54ef95cc4d1f3f2cde7c1f13250f889ffb81ca75 (20220301) and I get the same comparison failure.

[Bug other/61257] configure should check if sys/sdt.h is usable, not just checking the existance of the header

2022-03-14 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61257 --- Comment #8 from Eric Gallager --- (In reply to Eric Gallager from comment #7) > Patch: https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591704.html Oh, this one is also relevant, too:

[Bug c++/104920] Unreliable results with memset-elt-size

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug other/61257] configure should check if sys/sdt.h is usable, not just checking the existance of the header

2022-03-14 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61257 Eric Gallager changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/104921] New: aarch64: Assembler failure with vbfmlalbq_lane_f32 intrinsic

2022-03-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104921 Bug ID: 104921 Summary: aarch64: Assembler failure with vbfmlalbq_lane_f32 intrinsic Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104920] Unreliable results with memset-elt-size

2022-03-14 Thread kouhzadi at rohumm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 --- Comment #2 from Ali Kouhzadi --- Thanks Andrew for the response. Examples bad_03.cpp and bad_04.cpp (attached) show a case where this works as expected on an STL array. I guess the point is that it's somewhat unreliable, and improvements

[Bug middle-end/104854] -Wstringop-overread should not warn for strnlen, strndup and strncmp

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104854 --- Comment #5 from Martin Sebor --- It would be useful to separate these warnings into multiple levels: level 1 for invalid code, and higher levels for suspicious (or pointless) code, similarly to -Wformat-overflow.

[Bug c++/104920] Unreliable results with memset-elt-size

2022-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew

[Bug c++/104920] New: Unreliable results with memset-elt-size

2022-03-14 Thread kouhzadi at rohumm dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104920 Bug ID: 104920 Summary: Unreliable results with memset-elt-size Product: gcc Version: og11 (devel/omp/gcc-11) Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/104789] [12 Regression] -Wstringop-overflow false positive at -O3 for an unrolled loop

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104789 --- Comment #11 from Martin Sebor --- The direct store subset of -Wstringop-overflow that runs in the strlen pass (i.e., those handled in strlen_pass::handle_store) might be better handled in VRP and issued under -Warray-bounds. The challenge

[Bug testsuite/103324] RFE: Add a `make quickcheck` or `make smoketest` Makefile target to allow only running a portion of the testsuite

2022-03-14 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103324 --- Comment #6 from Eric Gallager --- (In reply to Eric Gallager from comment #5) > (In reply to Eric Gallager from comment #3) > > https://gcc.gnu.org/install/test.html says "To get a list of the possible > > *.exp files, pipe the output of

[Bug tree-optimization/94566] conversion between std::strong_ordering and int

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94566 --- Comment #11 from Jakub Jelinek --- (In reply to Oliver Schönrock from comment #10) > I agree the switch optimisation is better, but... > > shouldn't std::bit_cast prevent incorrect casting with different underlying > implementaion? (ie if

[Bug c++/104919] New: [modules] enum in constexpr function causes "failed to read compiled module cluster 1: Bad file data"

2022-03-14 Thread ensadc at mailnesia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104919 Bug ID: 104919 Summary: [modules] enum in constexpr function causes "failed to read compiled module cluster 1: Bad file data" Product: gcc Version: 12.0 Status:

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #18 from Jonathan Wakely --- (In reply to Eyal Rozenberg from comment #16) > The compiler could store information in the compiled object listing the > virtual members for which no implementation was found, due to which reason > the

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #17 from Jonathan Wakely --- (In reply to Eyal Rozenberg from comment #16) > I'm not quite sure what a key function is, Then read the link I gave you in PR 104918 comment 1. > Not just learners. If you have a large class with many

[Bug tree-optimization/94566] conversion between std::strong_ordering and int

2022-03-14 Thread oschonrock at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94566 --- Comment #10 from Oliver Schönrock --- I agree the switch optimisation is better, but... shouldn't std::bit_cast prevent incorrect casting with different underlying implementaion? (ie if the size doesn't match, and the size could be deduced

[Bug c++/104918] Pass information to let the linker tell the user which virtual members are missing

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104918 --- Comment #3 from Jonathan Wakely --- (In reply to Eyal Rozenberg from comment #2) > Why not store information in the compiled object saying which virtual items > are undefined? The vtable was missing because some virtual members were >

[Bug tree-optimization/94566] conversion between std::strong_ordering and int

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94566 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #9

[Bug target/104253] libgcc missing __floatdiif

2022-03-14 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104253 --- Comment #18 from Peter Bergner --- (In reply to Eric Botcazou from comment #17) > The test fails on VxWorks, where there is no 128-bit long double: > > cc1: warning: The '-mfloat128' option may not be fully supported > > so it looks like

[Bug c++/97198] __is_constructible(int[], int) should return true

2022-03-14 Thread lichray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 --- Comment #8 from Zhihao Yuan --- (In reply to Jonathan Wakely from comment #7) > (In reply to Zhihao Yuan from comment #5) > > Encountered this today. In case I cannot show up when discussing LWG3486, my > > use case is that C(in_place_type,

[Bug tree-optimization/94566] conversion between std::strong_ordering and int

2022-03-14 Thread oschonrock at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94566 --- Comment #8 from Oliver Schönrock --- how about: #include #include #include int conv3(std::strong_ordering s){ return std::bit_cast(s); } std::strong_ordering conv4(int i){ return std::bit_cast(static_cast(i)); }

[Bug tree-optimization/104746] False positive for -Wformat-overflow=2 since r12-7033-g3c9f762ad02f398c

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104746 Martin Sebor changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Bug middle-end/104880] [11 Regression] ICE in expand_expr_addr_expr_1, at expr.c:8231 since r11-165-geb72dc663e9070

2022-03-14 Thread dimitar.yordanov at sap dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104880 --- Comment #4 from Dimitar Yordanov --- Thanks, works for me!

[Bug target/96882] Wrong assembly code generated with arm-none-eabi-gcc -flto -mfloat-abi=hard options

2022-03-14 Thread dcrocker at eschertech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96882 David Crocker changed: What|Removed |Added CC||dcrocker at eschertech dot com ---

[Bug c++/86426] g++ ICE at on valid code in tree_operand_check, at tree.h:3615

2022-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86426 Patrick Palka changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug c++/104837] tree check fail: in tree_operand_check, at tree.h:3948

2022-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104837 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug middle-end/104696] [OpenMP] component/array-ref/component (x.r[1].d) should use 'x' for GOMP_MAP_STRUCT (not yield 'x.r[1]' for nonptr 'x.r')

2022-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696 Tobias Burnus changed: What|Removed |Added Component|fortran |middle-end Summary|[OpenMP]

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2022-03-14 Thread eyalroz1 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #16 from Eyal Rozenberg --- Some comments following my recent dupe... (In reply to Andrew Pinski from comment #1) > I don't know if there is anything there could be done here since the linker > is what is producing the error. The

[Bug target/104910] [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn)

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104910 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.4

[Bug c++/104918] Pass information to let the linker tell the user which virtual members are missing

2022-03-14 Thread eyalroz1 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104918 --- Comment #2 from Eyal Rozenberg --- (In reply to Jonathan Wakely from comment #1) > I don't think there's anything for GCC to do here. Why not store information in the compiled object saying which virtual items are undefined? The vtable was

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-14 Thread ed at catmur dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Ed Catmur changed: What|Removed |Added CC||ed at catmur dot uk --- Comment #6 from Ed

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 --- Comment #5 from Richard Biener --- Another thing is noticing the loop performs no vector loads/stores at all, all of them are strided. If we'd improve SLP analysis we could get equal (but VF==1) basic-block vectorization - but with the

[Bug other/42540] c++ error message [vtable undefined] is unhelpful

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540 --- Comment #15 from Jonathan Wakely --- *** Bug 104918 has been marked as a duplicate of this bug. ***

[Bug c++/104918] Pass information to let the linker tell the user which virtual members are missing

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104918 Jonathan Wakely changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c++/104918] New: Pass information to let the linker tell the user which virtual members are missing

2022-03-14 Thread eyalroz1 at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104918 Bug ID: 104918 Summary: Pass information to let the linker tell the user which virtual members are missing Product: gcc Version: 11.2.1 Status: UNCONFIRMED

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/104917] New: No runtime alias test required for dependent reductions

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104917 Bug ID: 104917 Summary: No runtime alias test required for dependent reductions Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:77eb0461abe61a85f69270048ad81b25b1cc95d6 commit r12-7644-g77eb0461abe61a85f69270048ad81b25b1cc95d6 Author: Jakub Jelinek Date:

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 --- Comment #4 from Richard Biener --- I think for the case at hand no runtime alias checking is needed, since we have DO 30 MK=1,NOC DO 30 ML=1,MK MKL = MKL+1 XPQKL(MPQ,MKL) =

[Bug tree-optimization/91246] vectorization failure for a small loop to search array element

2022-03-14 Thread d_vampile at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91246 d_vampile changed: What|Removed |Added CC||d_vampile at 163 dot com --- Comment #6

[Bug c/104913] [OpenMP] Bogus 'unused variable' with 'omp depobj'

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104913 --- Comment #2 from Jakub Jelinek --- We also warn e.g. in void foo () { int x; #pragma omp task firstprivate(x) ; } case. To some extent at least for data sharing and most other OpenMP clauses the data sharing isn't really a kind of use,

[Bug libstdc++/104875] libstdc++-v3/src/c++11/codecvt.cc:312:24: warning: left shift count >= width of type

2022-03-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104875 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:8f7b7c1495f92c72da154d32317943a2cc276ca8 commit r12-7643-g8f7b7c1495f92c72da154d32317943a2cc276ca8 Author: Jonathan Wakely

[Bug target/104916] [nvptx] Handle Independent Thread Scheduling for sm_70+ with -muniform-simt

2022-03-14 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104916 --- Comment #1 from Tom de Vries --- We could try the same solution as for atomic: predicate ld/st to only execute in lane 0, and propagate ld result. Another solution might be to wrap each ld/st in two bar.warp.sync.

[Bug target/104916] New: [nvptx] Handle Independent Thread Scheduling for sm_70+ with -muniform-simt

2022-03-14 Thread vries at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104916 Bug ID: 104916 Summary: [nvptx] Handle Independent Thread Scheduling for sm_70+ with -muniform-simt Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug c++/99331] [8/9/10 Regression] -Wconversion false-positive in immediate context

2022-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99331 Patrick Palka changed: What|Removed |Added CC||jens.maurer at gmx dot net --- Comment

[Bug c++/80601] spurious -Wconversion warning with explicit class template arguments

2022-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80601 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c/104913] [OpenMP] Bogus 'unused variable' with 'omp depobj'

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104913 --- Comment #1 from Jakub Jelinek --- That isn't depobj related but depend clause related: void foo () { int x; #pragma omp task depend(inout: x) ; } warns as well.

[Bug target/104915] New: Miss optimization for vec_setv8hi_0

2022-03-14 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104915 Bug ID: 104915 Summary: Miss optimization for vec_setv8hi_0 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug tree-optimization/88398] vectorization failure for a small loop to do byte comparison

2022-03-14 Thread d_vampile at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 d_vampile changed: What|Removed |Added CC||d_vampile at 163 dot com --- Comment #48

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 --- Comment #3 from Richard Biener --- (In reply to Richard Biener from comment #2) > PR87561 has a testcase and for it we pessimized strided loads & stores "a > bit more" in r9-6581-g7d7d1ce83889ee and r9-6580-g0538ed1d3602ec We're entering

[Bug target/104914] [MIPS] wrong comparison with scrabbled int value

2022-03-14 Thread mmyangfl at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104914 --- Comment #1 from Yangfl --- Original issue: https://github.com/matplotlib/matplotlib/issues/21789

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 --- Comment #1 from Richard Biener --- +mccas.fppized.f:3160:21: optimized: loop vectorized using 16 byte vectors +mccas.fppized.f:3160:21: optimized: loop versioned for vectorization because of possible aliasing +mccas.fppized.f:3195:21:

[Bug c++/97198] __is_constructible(int[], int) should return true

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 --- Comment #7 from Jonathan Wakely --- (In reply to Zhihao Yuan from comment #5) > Encountered this today. In case I cannot show up when discussing LWG3486, my > use case is that C(in_place_type, a, b, c) should "just works." It's up > to C how

[Bug target/104914] New: [MIPS] wrong comparison with scrabbled int value

2022-03-14 Thread mmyangfl at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104914 Bug ID: 104914 Summary: [MIPS] wrong comparison with scrabbled int value Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/104910] [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn)

2022-03-14 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104910 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2022-03-14 Ever confirmed|0

[Bug c++/104905] untranslated word in diagnostic about compiled module

2022-03-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104905 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-03-14

[Bug c/104913] New: [OpenMP] Bogus 'unused variable' with 'omp depobj'

2022-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104913 Bug ID: 104913 Summary: [OpenMP] Bogus 'unused variable' with 'omp depobj' Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic, openmp Severity: normal

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug target/104912] [12 Regression] 416.gamess regression after r12-7612

2022-03-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912 Richard Biener changed: What|Removed |Added Keywords||missed-optimization

  1   2   >