[Bug c++/102626] New: [c++20] compiler crash when invoking constexpr function in the constructor of template class

2021-10-05 Thread royalbee at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102626 Bug ID: 102626 Summary: [c++20] compiler crash when invoking constexpr function in the constructor of template class Product: gcc Version: 10.0 Status: UNCONFIRMED

[Bug other/102605] address instruction from -fdump-tree-*-gimple doesn't work with -fgimple

2021-10-05 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102605 --- Comment #4 from rguenther at suse dot de --- On Tue, 5 Oct 2021, aldyh at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102605 > > --- Comment #2 from Aldy Hernandez --- > (In reply to Richard Biener from comment #

[Bug c++/102490] Erroneous optimization of default constexpr operator== of struct with bitfields

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102490 --- Comment #6 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:09d886e671f2230acca082e6579a69b8df8fb202 commit r12-4202-g09d886e671f2230acca082e6579a69b8df8fb202 Author: Jakub Jelinek Date: F

[Bug c++/98712] Incorrect defaulted operator== at compile time and runtime when declared constexpr and inheriting (c++20)

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98712 --- Comment #6 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:09d886e671f2230acca082e6579a69b8df8fb202 commit r12-4202-g09d886e671f2230acca082e6579a69b8df8fb202 Author: Jakub Jelinek Date: Fr

[Bug target/49244] __sync or __atomic builtins will not emit 'lock bts/btr/btc'

2021-10-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244 --- Comment #25 from H.J. Lu --- (In reply to Jakub Jelinek from comment #24) > I wanted to look at #c20, but at least my i9-7960X for e.g. lock; btsl $65, > var > acts the same as lock; btsl $1, var rather than lock; btsl $1, var+8, > so maybe #

[Bug middle-end/93644] [10/11/12 Regression] spurious -Wreturn-local-addr with PHI of PHI

2021-10-05 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644 --- Comment #18 from Eric Gallager --- This affects musl's getcwd implementation, btw: https://git.musl-libc.org/cgit/musl/tree/src/unistd/getcwd.c?id=v1.2.2

[Bug target/90698] Darwin X86 backend lacks support for mcmodel={medium, large, kernel}

2021-10-05 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90698 --- Comment #13 from Eric Gallager --- For the purposes of clarifying the "lacks support" wording, where exactly does the failure occur if one tries to enable it? That is, in which step?

[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared

2021-10-05 Thread ilya.konstantinov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 Ilya Konstantinov changed: What|Removed |Added CC||ilya.konstantinov at gmail dot com

[Bug target/102625] New: [meta-bug] -mcmodel=large can't link

2021-10-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102625 Bug ID: 102625 Summary: [meta-bug] -mcmodel=large can't link Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: meta-bug Severity: normal Priority: P3

[Bug target/102485] -Wa,-many no longer has any effect

2021-10-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102485 --- Comment #5 from Segher Boessenkool --- (In reply to Peter Bergner from comment #4) > (In reply to Segher Boessenkool from comment #3) > > (In reply to Paul Clarke from comment #2) > > > "-many" is supposed to make those black boxes just work

[Bug tree-optimization/102622] [12 Regression] Wrong code with -O3 for skylake-avx512 and icelake-server

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102622 Andrew Pinski changed: What|Removed |Added Known to work||11.2.0 --- Comment #3 from Andrew Pinsk

[Bug tree-optimization/102359] ICE gimplification failed since r12-3433-ga25e0b5e6ac8a77a

2021-10-05 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102359 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug tree-optimization/102359] ICE gimplification failed since r12-3433-ga25e0b5e6ac8a77a

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102359 --- Comment #3 from CVS Commits --- The master branch has been updated by Qing Zhao : https://gcc.gnu.org/g:433516e1c6b1f8eeceeceb83cec5ea02a14065dc commit r12-4200-g433516e1c6b1f8eeceeceb83cec5ea02a14065dc Author: qing zhao Date: Tue Oct 5

[Bug target/102485] -Wa,-many no longer has any effect

2021-10-05 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102485 --- Comment #4 from Peter Bergner --- (In reply to Segher Boessenkool from comment #3) > (In reply to Paul Clarke from comment #2) > > "-many" is supposed to make those black boxes just work. This worked before > > recent changes to binutils/GC

[Bug testsuite/94853] [10/11/12 regression] excess errors in gfortran.dg/analyzer/pr93993.f90 since r10-8012

2021-10-05 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94853 Peter Bergner changed: What|Removed |Added CC||bergner at gcc dot gnu.org --- Comment #

[Bug target/101104] test case gcc.c-torture/execute/ieee/cdivchkld.c fails

2021-10-05 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101104 Peter Bergner changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/100799] Stackoverflow in optimized code on PPC

2021-10-05 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100799 --- Comment #5 from Peter Bergner --- So I took dgebal.f and ran delta on it to try and reduce it to something manageable (I wish creduce worked on fortran files!) and got the following which still shows us accessing above the stack. SUBR

[Bug tree-optimization/102622] [12 Regression] Wrong code with -O3 for skylake-avx512 and icelake-server

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102622 --- Comment #2 from Andrew Pinski --- Here is a slightly more reduced testcase (without the reasonable values): static inline const unsigned &max1(const unsigned &t, const unsigned &t1) { return t > t1 ? t : t1; } extern int var_20, var_22;

[Bug tree-optimization/102622] [12 Regression] Wrong code with -O3 for skylake-avx512 and icelake-server

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102622 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Summary|Wrong code with -O

[Bug c++/102548] [9/10 Regression] ICE with cdecl attribute on a builtin function since r7-4737-g48330c9355e32a41

2021-10-05 Thread ulatekh at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102548 --- Comment #10 from Steven Boswell II --- Great work! Thanks! The patch seems to apply to gcc 10 also, but I haven't built the result yet.

[Bug target/102485] -Wa,-many no longer has any effect

2021-10-05 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102485 --- Comment #3 from Segher Boessenkool --- (In reply to Paul Clarke from comment #2) > GCC putting the base ".machine" directive at the beginning of the file makes > any command-line use of "-many" (-Wa,-many) be ignored. Is that OK? If peopl

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2021-10-05 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #16 from qingzhe huang --- > Ah yeah, I can reproduce the crash when invoking cc1plus directly and also > when > passing -Q to the driver.  Might be better to open a separate PR for this as > it > seems to be a latent bug. just open

[Bug c++/102624] New: testcase lambda-uneval11.C causes cc1plus segment fault

2021-10-05 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102624 Bug ID: 102624 Summary: testcase lambda-uneval11.C causes cc1plus segment fault Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2021-10-05 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #15 from qingzhe huang --- >>Might be better to open a separate PR for this as it seems to be a latent bug. thanks, I will file a new bug. From: ppalka at gcc dot gnu.org Sent: October 5, 2021 5:05 PM To: nickhuan...@hotmail

[Bug c++/102548] [9/10 Regression] ICE with cdecl attribute on a builtin function since r7-4737-g48330c9355e32a41

2021-10-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102548 Jakub Jelinek changed: What|Removed |Added Summary|[9/10/11/12 Regression] ICE |[9/10 Regression] ICE with

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #14 from Patrick Palka --- (In reply to qingzhe huang from comment #13) > (In reply to Patrick Palka from comment #12) > > (In reply to qingzhe huang from comment #11) > > > The testcase g++.dg/cpp2a/lambda-uneval11.C still suffers a

[Bug c++/102548] [9/10/11/12 Regression] ICE with cdecl attribute on a builtin function since r7-4737-g48330c9355e32a41

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102548 --- Comment #8 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:e1edbce89a93dde8653666eaf402d58dda43e3b0 commit r11-9075-ge1edbce89a93dde8653666eaf402d58dda43e3b0 Author: Jakub Jelinek

[Bug sanitizer/102515] UBSAN misses signed division instrumentation

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102515 --- Comment #10 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:dcf70cb0d85d04ff680a361e32d79c326ae8b3fc commit r11-9074-gdcf70cb0d85d04ff680a361e32d79c326ae8b3fc Author: Jakub Jelinek

[Bug c++/102496] [11 regression] extern __thread and thread_local declaration in function scope produces a non-TLS reference

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102496 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:5fec46a0b4a94190209c81f4091a0369a056727d commit r11-9073-g5fec46a0b4a94190209c81f4091a0369a056727d Author: Jakub Jelinek

[Bug c++/102548] [9/10/11/12 Regression] ICE with cdecl attribute on a builtin function since r7-4737-g48330c9355e32a41

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102548 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:737f95bab557584d876f02779ab79fe3cfaacacf commit r12-4198-g737f95bab557584d876f02779ab79fe3cfaacacf Author: Jakub Jelinek Date: T

[Bug fortran/102595] ICE in var_element, at fortran/decl.c:298

2021-10-05 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102595 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug fortran/102582] allocate treats all variables as type CHARACTER after use of CHARACTER(LEN=NNN)::

2021-10-05 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102582 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |INVALID Status|U

[Bug c++/102623] Failure to detect destructed scalar objects in consteval function

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102623 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug fortran/102458] ICE tree check: expected array_type, have pointer_type in gfc_conv_array_initializer, at fortran/trans-array.c:6136

2021-10-05 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |10.4 Status|ASSI

[Bug fortran/102458] ICE tree check: expected array_type, have pointer_type in gfc_conv_array_initializer, at fortran/trans-array.c:6136

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458 --- Comment #18 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:dea2e6c7b5af2ec620fd94d824f006440907a34d commit r10-10170-gdea2e6c7b5af2ec620fd94d824f006440907a34d Author: Harald Anlauf

[Bug fortran/102458] ICE tree check: expected array_type, have pointer_type in gfc_conv_array_initializer, at fortran/trans-array.c:6136

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458 --- Comment #17 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:4aabb9ac284fea307aa70bb8ae4bdce298461bc7 commit r10-10169-g4aabb9ac284fea307aa70bb8ae4bdce298461bc7 Author: Harald Anlauf

[Bug c++/102547] [11 Regression] g++ 11. ICE with NTTPs and partial specialization

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102547 Patrick Palka changed: What|Removed |Added Summary|[11/12 Regression] g++ 11. |[11 Regression] g++ 11. ICE

[Bug c++/102547] [11/12 Regression] g++ 11. ICE with NTTPs and partial specialization

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102547 --- Comment #6 from Patrick Palka --- (In reply to Bob Steagall from comment #4) > I have applied this tentative change to line 23436 of gcc/cp/pt.c from the > gcc-11.2.0 source tarball, and can confirm that the test case compiles for > me. > >

[Bug c++/102623] New: Failure to detect destructed scalar objects in consteval function

2021-10-05 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102623 Bug ID: 102623 Summary: Failure to detect destructed scalar objects in consteval function Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/102622] New: Wrong code with -O3 for skylake-avx512 and icelake-server

2021-10-05 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102622 Bug ID: 102622 Summary: Wrong code with -O3 for skylake-avx512 and icelake-server Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/102547] [11/12 Regression] g++ 11. ICE with NTTPs and partial specialization

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102547 --- Comment #5 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d4c470c376b4cb82c9a0b7e8a4b88c44d5e4289d commit r12-4196-gd4c470c376b4cb82c9a0b7e8a4b88c44d5e4289d Author: Patrick Palka Date: T

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #19 from Thiago Macieira --- (In reply to H.J. Lu from comment #17) > Created attachment 51558 [details] > The v6 patch > > Please try this. Confirmed for all inputs.

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #18 from H.J. Lu --- (In reply to Andrew Pinski from comment #16) > (In reply to H.J. Lu from comment #14) > > Created attachment 51556 [details] > > The v5 patch > > > > Changes in v5: > > > > 1. Check SSA_NAME before SSA_NAME_OCC

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 H.J. Lu changed: What|Removed |Added Attachment #51556|0 |1 is obsolete|

[Bug c++/102607] [modules] option -g results in undefined reference to `typeinfo for type`

2021-10-05 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607 --- Comment #1 from Johel Ernesto Guerrero Peña --- A workaround is to define `B`'s destructor as `constexpr virtual ~B() { }`.

[Bug fortran/102620] [12 Regression] ICE in gfc_get_array_span, at fortran/trans-array.c:865

2021-10-05 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102620 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/100557] [ICE] Internal compiler error: Error reporting routines re-entered.

2021-10-05 Thread ldalessandro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100557 --- Comment #2 from Luke Dalessandro --- Still failing in trunk, here's a CE link to the preprocessed source https://godbolt.org/z/YPfTGnT5f.

[Bug target/102477] [12 Regression] ICE: in emit_move_insn, at expr.c:4026 at -Og and -O

2021-10-05 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102477 --- Comment #4 from Zdenek Sojka --- Created attachment 51557 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51557&action=edit another testcase, failing at -O $ x86_64-pc-linux-gnu-gcc -O testcase.c during RTL pass: expand testcase.c: In

[Bug fortran/102621] New: [12 Regression] ICE in convert_nonlocal_reference_op, at tree-nested.c:1166

2021-10-05 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102621 Bug ID: 102621 Summary: [12 Regression] ICE in convert_nonlocal_reference_op, at tree-nested.c:1166 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: no

[Bug fortran/102620] [12 Regression] ICE in gfc_get_array_span, at fortran/trans-array.c:865

2021-10-05 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102620 G. Steinmetz changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comment #1 from

[Bug fortran/102620] New: [12 Regression] ICE in gfc_get_array_span, at fortran/trans-array.c:865

2021-10-05 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102620 Bug ID: 102620 Summary: [12 Regression] ICE in gfc_get_array_span, at fortran/trans-array.c:865 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215

2021-10-05 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619 G. Steinmetz changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #1 from G.

[Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215

2021-10-05 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619 Bug ID: 102619 Summary: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 Product: gcc Version: 12.0 Status: UNCON

[Bug middle-end/102606] large array in a dead-code is not optimized away at -O0

2021-10-05 Thread k.even-mendoza at imperial dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606 --- Comment #4 from Karine EM --- That would make sense, and I think it is also what happens when compiling the example with Clang and -O0 since the compilation takes only a few seconds then.

[Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped

2021-10-05 Thread contact at lsferreira dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618 Bug ID: 102618 Summary: d-demangle: anonymous symbols are not being properly skipped Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102490] Erroneous optimization of default constexpr operator== of struct with bitfields

2021-10-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102490 Jakub Jelinek changed: What|Removed |Added Assignee|jakub at gcc dot gnu.org |jason at gcc dot gnu.org --- Com

[Bug c++/102616] [C++23] P2334R1 - Add support for preprocessing directives elifdef and elifndef

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102616 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-10-05 Ever confirmed|0

[Bug c++/102617] [C++23] P2360R0 - Extend init-statement to allow alias-declaration

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617 Marek Polacek changed: What|Removed |Added Blocks||98940 Status|UNCONFIRMED

[Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617 Bug ID: 102617 Summary: [C++23] P2360R0 - Extend init-statement to allow alias-declaration Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/102616] New: [C++23] P2334R1 - Add support for preprocessing directives elifdef and elifndef

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102616 Bug ID: 102616 Summary: [C++23] P2334R1 - Add support for preprocessing directives elifdef and elifndef Product: gcc Version: unknown Status: UNCONFIRMED Sever

[Bug c++/102615] [C++23] P2316R2 - Consistent character literal encoding

2021-10-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102615 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug c++/102615] New: [C++23] P2316R2 - Consistent character literal encoding

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102615 Bug ID: 102615 Summary: [C++23] P2316R2 - Consistent character literal encoding Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Pr

[Bug c++/102614] New: [C++23] P2314R4 - Character sets and encodings

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102614 Bug ID: 102614 Summary: [C++23] P2314R4 - Character sets and encodings Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/102613] New: [C++23] P2246R1 - Character encoding of diagnostic text

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102613 Bug ID: 102613 Summary: [C++23] P2246R1 - Character encoding of diagnostic text Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Pr

[Bug c++/102612] [C++23] P2242R3 - Non-literal variables (and labels and gotos) in constexpr functions

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102612 Marek Polacek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c++/102612] New: [C++23] P2242R3 - Non-literal variables (and labels and gotos) in constexpr functions

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102612 Bug ID: 102612 Summary: [C++23] P2242R3 - Non-literal variables (and labels and gotos) in constexpr functions Product: gcc Version: unknown Status: UNCONFIRMED

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2021-10-05 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #13 from qingzhe huang --- (In reply to Patrick Palka from comment #12) > (In reply to qingzhe huang from comment #11) > > The testcase g++.dg/cpp2a/lambda-uneval11.C still suffers a segment fault if > > run by compiler cc1plus with l

[Bug c++/102611] New: [C++23] P2128R6 - Multidimensional subscript operator

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102611 Bug ID: 102611 Summary: [C++23] P2128R6 - Multidimensional subscript operator Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug middle-end/102606] large array in a dead-code is not optimized away at -O0

2021-10-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug target/102604] arm v7m_extra_costs for SFmode inaccurate?

2021-10-05 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102604 --- Comment #2 from Christophe Lyon --- Right, using -Os makes these tests pass (but vsqrt.f32 and vsqrt.f64 would fail), but I'm still wondering about the purpose of vmla? Rather than benchmarking, the costs may come from the Architecture docu

[Bug c++/102610] New: [C++23] P2036R3 - Change scope of lambda trailing-return-type

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102610 Bug ID: 102610 Summary: [C++23] P2036R3 - Change scope of lambda trailing-return-type Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #16 from Andrew Pinski --- (In reply to H.J. Lu from comment #14) > Created attachment 51556 [details] > The v5 patch > > Changes in v5: > > 1. Check SSA_NAME before SSA_NAME_OCCURS_IN_ABNORMAL_PHI. Why don't you just move this to

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #15 from Thiago Macieira --- Works now for the failing case. Additionally: bool tbit(std::atomic &i) { return i.fetch_and(~CONSTANT, std::memory_order_relaxed) & (CONSTANT); } Will properly produce LOCK BTR (CONSTANT=2):

[Bug c++/102609] New: [C++23] P0847R7 - Deducing this

2021-10-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102609 Bug ID: 102609 Summary: [C++23] P0847R7 - Deducing this Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug debug/102507] ICE in btf_finalize when compiling with -gbtf

2021-10-05 Thread ibhagat at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102507 Indu Bhagat changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/102608] [12 regression] Recent change to VN causes bogus Wuninitialized warnings & kernel build failures

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102608 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/102608] [12 regression] Recent change to VN causes bogus Wuninitialized warnings & kernel build failures

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102608 --- Comment #1 from Andrew Pinski --- old32_34 = .DEFERRED_INIT (4, 2, 0); ... - _24 = .DEFERRED_INIT (4, 2, 0); - __res ={v} _24; + __res ={v} old32_34; # 68 "../arch/mips/include/asm/cmpxchg.h" This is due to __typeof(*((volatile u32

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-05 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 H.J. Lu changed: What|Removed |Added Attachment #51551|0 |1 is obsolete|

[Bug tree-optimization/102608] New: [12 regression] Recent change to VN causes bogus Wuninitialized warnings & kernel build failures

2021-10-05 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102608 Bug ID: 102608 Summary: [12 regression] Recent change to VN causes bogus Wuninitialized warnings & kernel build failures Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c++/102607] New: [modules] option -g results in undefined reference to `typeinfo for type`

2021-10-05 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607 Bug ID: 102607 Summary: [modules] option -g results in undefined reference to `typeinfo for type` Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: link

[Bug other/102605] address instruction from -fdump-tree-*-gimple doesn't work with -fgimple

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102605 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d4f6dbe18374385b8199ca3d6121e37a1189b589 commit r12-4187-gd4f6dbe18374385b8199ca3d6121e37a1189b589 Author: Richard Biener Date:

[Bug target/102604] arm v7m_extra_costs for SFmode inaccurate?

2021-10-05 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102604 --- Comment #1 from Richard Earnshaw --- I wonder if it might be better to change this test to use -Os, since then the cost model is much more consistent as it's based on size rather than speed.

[Bug c++/53164] Undefined reference to template function instantiation

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53164 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org Assi

[Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92010 --- Comment #12 from Patrick Palka --- (In reply to qingzhe huang from comment #11) > The testcase g++.dg/cpp2a/lambda-uneval11.C still suffers a segment fault if > run by compiler cc1plus with latest code. Hmm, I can't reproduce that on latest

[Bug tree-optimization/102571] FAIL: libgomp.c/../libgomp.c-c++-common/atomic-21.c execution test

2021-10-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102571 --- Comment #2 from Jakub Jelinek --- Created attachment 51554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51554&action=edit gcc12-pr102571.patch Untested patch for the OpenMP optimization that will result in this bug not triggering fo

[Bug c++/55004] [meta-bug] constexpr issues

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 102603, which changed state. Bug 102603 Summary: Compile-time evaluation of indirection via dangling pointer is not rejected https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102603 What|Removed

[Bug c++/70331] missing error dereferencing a dangling pointer (out of scope) in constexpr function

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70331 Andrew Pinski changed: What|Removed |Added CC||fchelnokov at gmail dot com --- Comment

[Bug c++/102603] Compile-time evaluation of indirection via dangling pointer is not rejected

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102603 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/55004] [meta-bug] constexpr issues

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 93389, which changed state. Bug 93389 Summary: Failure to detect UB in constexpr context https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93389 What|Removed |Added --

[Bug c++/70331] missing error dereferencing a dangling pointer (out of scope) in constexpr function

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70331 Andrew Pinski changed: What|Removed |Added CC||klaus.doldinger64@googlemai

[Bug c++/93389] Failure to detect UB in constexpr context

2021-10-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93389 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug other/102605] address instruction from -fdump-tree-*-gimple doesn't work with -fgimple

2021-10-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102605 --- Comment #2 from Aldy Hernandez --- (In reply to Richard Biener from comment #1) > You need > > if (p_2(D) == _Literal (char *) &global[2]) > > and of course you need to provide the > > char global[10]; > > declaration. And then we sti

[Bug tree-optimization/102540] [12 Regression] Dead Code Elimination Regression at -O3 since r12-476-gd846f225c25c5885

2021-10-05 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102540 --- Comment #8 from Andrew Macleod --- > > > > It would probably resolve an entire class of things where we don't > > recognize an > > equivalence between a cast and a bitmask of equivalent precision. > > > > This would also mean the reverse

[Bug c++/55004] [meta-bug] constexpr issues

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 98930, which changed state. Bug 98930 Summary: ICE with static variable in template function used as template argument https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98930 What|Removed |A

[Bug c++/98930] ICE with static variable in template function used as template argument

2021-10-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98930 Patrick Palka changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug c++/98930] ICE with static variable in template function used as template argument

2021-10-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98930 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f3930418cb82000fae3cb4e98e870428800cf295 commit r12-4186-gf3930418cb82000fae3cb4e98e870428800cf295 Author: Patrick Palka Date: Tu

[Bug libstdc++/91356] Poor optimization of calls involving std::unique_ptr

2021-10-05 Thread nisse at lysator dot liu.se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91356 --- Comment #11 from Niels Möller --- Here's a bit more docs on using std::unique_ptr [[clang::trivial_abi]] with clang and its C++ library. https://libcxx.llvm.org//DesignDocs/UniquePtrTrivialAbi.html As for "No, it needs co-operation between

[Bug target/102602] [10/11/12 Regression] 32bit mips: Error: branch out of range

2021-10-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102602 Richard Biener changed: What|Removed |Added Keywords||wrong-code Target|

[Bug other/102605] address instruction from -fdump-tree-*-gimple doesn't work with -fgimple

2021-10-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102605 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug middle-end/102606] large array in a dead-code is not optimized away at -O0

2021-10-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

  1   2   >