[Bug c++/103769] [11/12 Regression] checking ICE in hashtab_chk_error with alias template and pack expansion after r11-7931

2022-01-07 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103769 --- Comment #5 from Sergei Trofimovich --- I think I found something similar on openttd-12.1. Seems to be a mostly gcc-12 regression: $ cat bug.cpp template using t = T; template struct s; template s...> f() { f(); } $ g++-12.0.0 --param=ha

[Bug c++/103937] New: Assembler error: symbol is already defined when compiling static member function templates

2022-01-07 Thread mac.zyg2 at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103937 Bug ID: 103937 Summary: Assembler error: symbol is already defined when compiling static member function templates Product: gcc Version: 11.2.0 Status: UNCONFIRMED

[Bug c++/103937] Assembler error: symbol is already defined when compiling static member function templates

2022-01-07 Thread mac.zyg2 at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103937 --- Comment #1 from mac.zyg2 at protonmail dot com --- Created attachment 52140 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52140&action=edit Generated assembly on GCC 11.2

[Bug c++/103937] [11/12 Regression] Assembler error: symbol is already defined when compiling static member function templates since r11-7965-g23be03a0f243a084

2022-01-07 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103937 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/103937] [11/12 Regression] Assembler error: symbol is already defined when compiling static member function templates since r11-7965-g23be03a0f243a084

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

[Bug c++/103186] [11/12 Regression] ICE with lambdas as default since r11-7965-g23be03a0f243a084

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103186 Andrew Pinski changed: What|Removed |Added CC||mac.zyg2 at protonmail dot com --- Comm

[Bug c++/103769] [11/12 Regression] checking ICE in hashtab_chk_error with alias template and pack expansion after r11-7931

2022-01-07 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103769 --- Comment #6 from Sergei Trofimovich --- Trying to understand what the error means: Crash happens when we look up entry in gcc/cp/pt.c:static GTY (()) spec_hash_table *type_specializations; It's a hash table of entries of spec_entry type:

[Bug c++/103769] [11/12 Regression] checking ICE in hashtab_chk_error with alias template and pack expansion after r11-7931

2022-01-07 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103769 --- Comment #7 from Martin Liška --- With: diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 0fa4a162354..9a8bfa51049 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -45,6 +45,7 @@ along with GCC; see the file COPYING3. If not see #include "gcc-rich

[Bug target/103465] [12 regression] -freorder-blocks-and-partition broken on 64-bit Windows

2022-01-07 Thread tomas.kalibera at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103465 --- Comment #27 from Tomas Kalibera --- > > should do the job. Tomas, can you give it a try? > > Thanks, so far I tried it only on predict-22.c and it works (with a fixed > comma as below), enables the optimization. I will do more testing tom

[Bug fortran/103914] -fcheck=do seems not to work with omp parallel do construct

2022-01-07 Thread xiao.liu--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103914 --- Comment #2 from xiao@compiler-dev.com --- Thanks a lot.

[Bug fortran/103914] -fcheck=do seems not to work with omp parallel do construct

2022-01-07 Thread xiao.liu--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103914 --- Comment #3 from xiao@compiler-dev.com --- (In reply to xiao@compiler-dev.com from comment #2) > Thanks a lot. (In reply to anlauf from comment #1) > (In reply to xiao@compiler-dev.com from comment #0) > > I have some questions:

[Bug target/103889] gccgo is unable to find its standard library by default on 64-Bit RISC-V due to musl not using multilib but still uses t-linux

2022-01-07 Thread bau2wux4sh at pkv73 dot anonbox.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103889 John Doe changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/90077] musl has no multlib support

2022-01-07 Thread bau2wux4sh at pkv73 dot anonbox.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90077 John Doe changed: What|Removed |Added CC||bau2wux4sh at pkv73 dot anonbox.ne

[Bug target/103938] New: ICE with __builtin_prefetch and vectors

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103938 Bug ID: 103938 Summary: ICE with __builtin_prefetch and vectors Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-checking, ice-on-valid-code Severity: normal

[Bug target/103938] ICE with __builtin_prefetch and vectors

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103938 --- Comment #1 from Andrew Pinski --- ira-costs.c record_operand_costs is stripping off the SUBREG. Is that even valid thing to do? for (i = 0; i < recog_data.n_operands; i++) { rtx op_mem = extract_mem_from_operand (recog_data.ope

[Bug libstdc++/80331] unused const std::string not optimized away

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80331 --- Comment #8 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #7) > With -std=c++20 -O2 I get better code than just -std=c++17 -O2: > _34 = operator new (24); > __builtin_memcpy (_34, "a ", 23); > MEM[

[Bug c++/80662] libstdc++ basic_string casting oddity

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80662 --- Comment #7 from Jonathan Wakely --- EDG matches GCC with --g++ (which is what ICC uses) but in it's strict mode it says they're ambiguous: "s.C", line 13: error: more than one operator "<<" matches these operands: function templa

[Bug c++/103939] New: memset with sizeof in wrong place not detected ?

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 Bug ID: 103939 Summary: memset with sizeof in wrong place not detected ? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/80662] libstdc++ basic_string casting oddity

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80662 --- Comment #8 from Jonathan Wakely --- FWIW the original example compiles now, but that's because https://wg21.link/lwg1203 (implemented by r12-319 and in gcc 11.2 by r11-8369) changed the return type to be a reference to the original stream, n

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 Jonathan Wakely changed: What|Removed |Added Severity|normal |enhancement Ever confirmed|0

[Bug c++/80886] __builtin_constant_p magic has broken at some point

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80886 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/103775] [12 Regression] Assembler messages: Warning: unpredictable transfer with writeback -- `ldrb w0,[x0,16]!'

2022-01-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment #4

[Bug c++/57632] Operator new overloads with stdc++11 enabled looses exception specifier (MacOsX)

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Resolution|INVALID

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug c++/89563] decltype resolution doesn't terminate recursion

2022-01-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89563 Patrick Palka changed: What|Removed |Added Target Milestone|--- |11.0 Status|UNCONFIRMED

[Bug c++/83426] template argument involves template parameters with implicit integral conversion

2022-01-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83426 Patrick Palka changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #3 from Jonathan Wakely --- Has anybody ever written such code?

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #4 from Jonathan Wakely --- I doubt they have, but if it's a concern, warn when the second argument is a sizeof expression and the third is any integer literal. That should catch cases where it matters.

[Bug c++/93050] throw within constructor initialisation list causes invalid free in destructor

2022-01-07 Thread dboles.src at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93050 Daniel Boles changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug analyzer/103940] New: RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index

2022-01-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103940 Bug ID: 103940 Summary: RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/103750] [i386] GCC schedules KMOV instructions that destroys performance in loop

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103750 --- Comment #17 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:e7a7dbb5ca5dd69689f1a462ba7620180acfe8b0 commit r12-6342-ge7a7dbb5ca5dd69689f1a462ba7620180acfe8b0 Author: liuhongt Date: Mon Dec

[Bug analyzer/103940] RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index

2022-01-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103940 --- Comment #1 from David Malcolm --- Note that -fanalyzer-checker=taint is currently required in addition to -fanalyzer to use this warning, due to scaling issues (see bug 103533).

[Bug analyzer/103533] Enable "taint" state machine with -fanalyzer without requiring -fanalyzer-checker=taint

2022-01-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103533 --- Comment #2 from David Malcolm --- Note that as well as the scaling issues, there currently aren't that many sources of taint (currently just a hardcoded one for the result fread); a lot more would be added by [PATCH 0/6] RFC: adding suppor

[Bug libstdc++/103911] std::from_chars shouldn't call isdigit

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103911 --- Comment #2 from Jonathan Wakely --- Thanks for the report, this is now fixed on trunk. I'll backport it too.

[Bug tree-optimization/103941] New: uavgv2qi3_ceil is not used

2022-01-07 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103941 Bug ID: 103941 Summary: uavgv2qi3_ceil is not used Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug target/103910] openjdk17 causes ICE on -O3 -march=opteron -fcheck-new: during GIMPLE pass: aprefetch: in gimple_build_call, at gimple.c:267

2022-01-07 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 --- Comment #8 from Sam James --- (In reply to Andrew Pinski from comment #7) > Fixed. The bug has been latent since r0-81404 (4.3.0 release). I doubt many > people are testing on opteron any mores but if someone wants to backport the > fix I am

[Bug target/103910] openjdk17 causes ICE on -O3 -march=opteron -fcheck-new: during GIMPLE pass: aprefetch: in gimple_build_call, at gimple.c:267

2022-01-07 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 --- Comment #9 from Sam James --- > (In reply to Andrew Pinski from comment #7) (and thank you to both you and slyfox!)

[Bug fortran/103942] New: [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread antony at cosmologist dot info via Gcc-bugs
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: antony at cosmologist dot info Target Milestone: --- The code works as expected in 9.3.1 20200614. In 10.3.1 20220107 and trunk it gives Program received signal

[Bug fortran/103942] [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread antony at cosmologist dot info via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103942 --- Comment #1 from Antony Lewis --- Also broken in 9.4.1 20220107.

[Bug c++/103943] New: ICE building qualified name inside class with variadic CTAD

2022-01-07 Thread cbcode at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103943 Bug ID: 103943 Summary: ICE building qualified name inside class with variadic CTAD Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/103942] [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103942 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #5 from David Binderman --- (In reply to Jonathan Wakely from comment #3) > Has anybody ever written such code? Yes, it is part of Fedora rawhide right now. >From packages with names starting 0-9a-d, package dvdisaster has it. It

[Bug d/103944] New: [12 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2022-01-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944 Bug ID: 103944 Summary: [12 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d Product: gcc Version: 12.0 Status: UNCONFIRMED Severit

[Bug d/103944] [12 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2022-01-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944 --- Comment #1 from Jakub Jelinek --- Looking at the testcase, in fork child from a multi-threaded process only async signal safe functions can be called until it execs, are you sure nothing else is called?

[Bug analyzer/103546] Analyzer reports null dereference in flex scanners

2022-01-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103546 --- Comment #3 from David Malcolm --- The -Wanalyzer-null-dereference false positive seems to be due to the analyzer being overzealous about escaping, where it erroneously is treating yy_buffer_stack as having escaped, and thus can be overwritte

[Bug ada/103436] gnatD debug info refers to original rather than generated file

2022-01-07 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103436 Eric Botcazou changed: What|Removed |Added Last reconfirmed||2022-01-07 CC|

[Bug target/103465] [12 regression] -freorder-blocks-and-partition broken on 64-bit Windows

2022-01-07 Thread tomas.kalibera at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103465 --- Comment #28 from Tomas Kalibera --- I've also tested the patch with GCC 10.3 (with several backports from gcc10 branch plus some minor fixes, https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/toolchain_libs/mxe/plugins/gc

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #6 from Jonathan Wakely --- I was replying to comment 2: "What if both the second and third arguments are 'sizeof' expressions?" Are you saying Fedora has code doing memset(ps, sizeof(a), sizeof(b)) ?

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #7 from Jonathan Wakely --- I see no such usage in dvdisaster, so I assume you were talking about the original example you gave in comment 0. Nobody is disputing the usefulness of that warning. I was questioning whether we need to ca

[Bug c++/101901] "warning: statement has no effect" in a variadic template with empty parameter pack.

2022-01-07 Thread headch at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101901 Christopher Head changed: What|Removed |Added CC||headch at gmail dot com --- Comment

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #8 from Jakub Jelinek --- memset (whatever, sizeof(whatever), 0); is a common mistake, that is why gcc has a warning for it too. But your report is the first one to suggest that even other variants happen in real-world. The thing is

[Bug fortran/103942] [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103942 --- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to Martin Liška from comment #2) > Started with r11-6928-g4225af228b5d52e8 and was fixed on master with > r12-1005-gfe03f4fc9548b3fd. Backporting r12-1005 (see pr100551) fixes the segfa

[Bug fortran/100551] [11/12 Regression] Passing return value of intrinsic to class(*) dummy argument can cause segfaults

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100551 --- Comment #9 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:6a3018a4064b39a418d95c32e45fe7d6ad17ebf3 commit r10-10384-g6a3018a4064b39a418d95c32e45fe7d6ad17ebf3 Author: Harald Anlauf

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #9 from Jonathan Wakely --- The fedora package has: dvdisaster-0.79.5/read-linear.c: memset(rc, sizeof(read_closure), 0xff); The chance of false positives still seems pretty small to me.

[Bug c++/103945] New: No warning for ordered comparison of function pointers ?

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103945 Bug ID: 103945 Summary: No warning for ordered comparison of function pointers ? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio

[Bug fortran/103942] [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103942 anlauf at gcc dot gnu.org changed: What|Removed |Added Build||2022-01-07 0:00 --- Comment

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #10 from Andreas Schwab --- If the second argument matches the size of the dereferenced first argument, the probability of a false positive should be quite small.

[Bug c++/103945] No warning for ordered comparison of function pointers ?

2022-01-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103945 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug c++/103945] No warning for ordered comparison of function pointers ?

2022-01-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103945 --- Comment #2 from Jonathan Wakely --- Confirmed. This seems to be new in Clang 13 (and enabled by default, even without -Wall). Clang 12 doesn't warn.

[Bug c++/103945] No warning for ordered comparison of function pointers ?

2022-01-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103945 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/103939] memset with sizeof in wrong place not detected ?

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939 --- Comment #11 from David Binderman --- (In reply to Jonathan Wakely from comment #9) > The fedora package has: > > dvdisaster-0.79.5/read-linear.c: memset(rc, sizeof(read_closure), 0xff); > > The chance of false positives still seems pret

[Bug c++/65308] [C++14] auto-returning function template used inside function template doesn't allow template members to be called

2022-01-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65308 Patrick Palka changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/81045] [7/8 Regression] return type deduction causes dependent types?

2022-01-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81045 Patrick Palka changed: What|Removed |Added CC||jporterbugs at gmail dot com --- Comment

[Bug c++/69701] "v.operator T()" incorrectly parsed if "v.T()" present.

2022-01-07 Thread language.lawyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69701 Language Lawyer changed: What|Removed |Added CC||language.lawyer at gmail dot com ---

[Bug c++/68138] "operator== is ambiguous" when comparing a tuple containing values with one containing refs

2022-01-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68138 Patrick Palka changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/65253] add -Wmemsize-comparison

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

[Bug testsuite/103763] [12 regression] gcc.target/powerpc/fold-vec-splat-floatdouble.c fails after r12-5988

2022-01-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103763 Michael Meissner changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug testsuite/103763] [12 regression] gcc.target/powerpc/fold-vec-splat-floatdouble.c fails after r12-5988

2022-01-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103763 --- Comment #1 from Michael Meissner --- Created attachment 52141 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52141&action=edit Patch to fix the insn count Update the insn regex for power10.

[Bug target/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102941 --- Comment #9 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:997130f778c56466a825627644e510960585521b commit r12-6374-g997130f778c56466a825627644e510960585521b Author: Andrew Pinski Date: Tu

[Bug target/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102941 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/20040] A new expression must check the access level of delete operator

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20040 --- Comment #3 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:6cd51207f5732b5258e883e9030b94c987b6d696 commit r12-6375-g6cd51207f5732b5258e883e9030b94c987b6d696 Author: Jason Merrill Date: Th

[Bug c++/103946] New: ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 Bug ID: 103946 Summary: ice in build_vec_init_expr, at cp/tree.c:791 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug c++/103943] [11/12 Regression] ICE building qualified name inside class with variadic CTAD

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103943 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Known to fail|

[Bug c++/103943] [11/12 Regression] ICE building qualified name inside class with variadic CTAD

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103943 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/103910] openjdk17 causes ICE on -O3 -march=opteron -fcheck-new: during GIMPLE pass: aprefetch: in gimple_build_call, at gimple.c:267

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 --- Comment #10 from Andrew Pinski --- (In reply to Sam James from comment #8) > More people than I expected hit this downstream in Gentoo. Your commit seems > to apply cleanly and work on top of the 11 branch. Could somebody apply it > if possi

[Bug analyzer/102692] -Wanalyzer-null-dereference false alarm with (!p || q || !p->next)

2022-01-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102692 David Malcolm changed: What|Removed |Added Last reconfirmed||2022-01-07 Ever confirmed|0

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 --- Comment #1 from David Binderman --- Reduced C++ code is: class UnicodeSet { virtual UnicodeSet complement(); }; enum { URX_GC_T, URX_LAST_SET }; class RegexStaticSets { RegexStaticSets(); UnicodeSet fPropSets[URX_LAST_SET]{}; }; Regex

[Bug ada/103538] [12 Regression] trunk 20211203 fails to build gnat on x86_64-linux-gnux32

2022-01-07 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103538 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org

[Bug testsuite/102935] [12 regression] new test case gcc.target/powerpc/pr101384-1.c fails

2022-01-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102935 Michael Meissner changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 Jakub Jelinek changed: What|Removed |Added Keywords||needs-reduction CC|

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 --- Comment #3 from Andrew Pinski --- Confirmed reduced further: struct s1 { s1(); }; class s2 { s1 f1[2]{}; }; s2 a; CUT --- This was most likely caused by one of Jason's recent patches that should have improved this case.

[Bug c++/57632] Operator new overloads with stdc++11 enabled looses exception specifier (MacOsX)

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632 --- Comment #6 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #5) > I agree with comment 3 that the current diagnostic is poor: Oh I missed that. > > #include > void* operator new(std::size_t mem) throw(std::bad_alloc); > vo

[Bug analyzer/103546] Analyzer reports null dereference in flex scanners

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103546 --- Comment #4 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:c1b7d28a5987e74232b7f054849f8bd8ccc7e7de commit r12-6376-gc1b7d28a5987e74232b7f054849f8bd8ccc7e7de Author: David Malcolm Date: F

[Bug analyzer/103546] Analyzer reports null dereference in flex scanners

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103546 --- Comment #5 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:4409152a4acaec5b58a93996088d0df9aaa779b8 commit r12-6377-g4409152a4acaec5b58a93996088d0df9aaa779b8 Author: David Malcolm Date: F

[Bug target/103910] openjdk17 causes ICE on -O3 -march=opteron -fcheck-new: during GIMPLE pass: aprefetch: in gimple_build_call, at gimple.c:267

2022-01-07 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 --- Comment #11 from Sam James --- (In reply to Andrew Pinski from comment #10) > Someone would have hit this a long time ago, in GCC 4.3.0 or latter. My point was that some software has recently started building with PCH by default and hence i

[Bug testsuite/102935] [12 regression] new test case gcc.target/powerpc/pr101384-1.c fails

2022-01-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102935 --- Comment #2 from Michael Meissner --- Created attachment 52143 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52143&action=edit Patch to update code generation test The test wants to load all 1's into a vector register. On power8 it u

[Bug testsuite/102935] [12 regression] new test case gcc.target/powerpc/pr101384-1.c fails

2022-01-07 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102935 Michael Meissner changed: What|Removed |Added Attachment #52143|0 |1 is obsolete|

[Bug analyzer/103940] RFE: check -Wanalyzer-tainted-size on external fns with attribute ((access)) with a size-index

2022-01-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103940 --- Comment #2 from Martin Sebor --- It makes sense to me, David.

[Bug c++/103947] New: wishlist: warning if explicitly defaulted (spaceship) operator is deleted

2022-01-07 Thread f.heckenbach--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103947 Bug ID: 103947 Summary: wishlist: warning if explicitly defaulted (spaceship) operator is deleted Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: no

[Bug c++/94061] defaulted member operator <=> defined as deleted if a base has protected member operator <=>

2022-01-07 Thread f.heckenbach--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94061 Frank Heckenbach changed: What|Removed |Added CC||f.heckenb...@fh-soft.de --- Comment #

[Bug c++/100588] Destroying delete shouldn't be called if constructor throws

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100588 --- Comment #1 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:75047f79550fd10a8f86f5c72deab10cde77 commit r12-6380-g75047f79550fd10a8f86f5c72deab10cde77 Author: Jason Merrill Date: T

[Bug c++/57632] diagonistic for different exception specifier/noexcept if decl is declared twice should be improved

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57632 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > Reduced testcase for that: > void f(void); > void f(void) throw(int); > void f(void) throw(int); > > Noexcept has the same issue: > void g(void); > void g(void)

[Bug c++/103947] wishlist: warning if explicitly defaulted (spaceship) operator is deleted

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103947 Andrew Pinski changed: What|Removed |Added Blocks||87403 Keywords|

[Bug d/103944] [12 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Keywords|

[Bug fortran/103942] [10 Regression] invalid memory reference with allocatable string and class(*)

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103942 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.4 Keywords|

[Bug bootstrap/66356] Failure to bootstrap release version together with binutils

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66356 --- Comment #1 from Andrew Pinski --- This is what I have for a cross compiler (I have not tested building natively this way really): lrwxrwxrwx 1 apinski apinski 20 Oct 26 2019 bfd -> ../gits/binutils/bfd lrwxrwxrwx 1 apinski apinski

[Bug other/54279] [4.8 Regression] first stage build with g++ fails with "." as the first component of $PATH

2022-01-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54279 --- Comment #10 from Andrew Pinski --- (In reply to Karlson2k from comment #9) > (In reply to comment #8) > > Fixed. Thanks for your report. > > Nice! > Shouldn't we do the same for other tools/languages? Like ada, java? Java has seen been rem

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:787d66eb6c53094161fb86e64ddf65f21389f63d commit r12-6381-g787d66eb6c53094161fb86e64ddf65f21389f63d Author: Jason Merrill Date: S

[Bug c++/103946] [12 Regression] ice in build_vec_init_expr, at cp/tree.c:791

2022-01-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103946 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

  1   2   >