[Bug c++/107024] New: ICE in finish_expr_stmt, at cp/semantics.cc:872

2022-09-23 Thread alex at clmbng dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107024 Bug ID: 107024 Summary: ICE in finish_expr_stmt, at cp/semantics.cc:872 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c/106939] Linker-defined symbols are stained due to 'array subscript is partly outside array bounds' warning

2022-09-23 Thread neoxic at icloud dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106939 --- Comment #8 from Arseny Vakhrushev --- Thank you, Jakub! I have read that section and can see that the Standard is just very cautious about the cases it doesn't cover labeling them as "undefined behaviour". The most likely reason is memory se

[Bug libstdc++/91456] std::function and std::is_invocable_r do not understand guaranteed elision

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91456 --- Comment #8 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:71c828f84572d933979468baf2cf744180258ee4 commit r13-2825-g71c828f84572d933979468baf2cf744180258ee4 Author: Jonathan Wakely Date:

[Bug c++/107023] New: [[gnu::stdcall]] Crashes the compiler, but __attribute__((stdcall)) and __stdcall worrks

2022-09-23 Thread bthomas at brave dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107023 Bug ID: 107023 Summary: [[gnu::stdcall]] Crashes the compiler, but __attribute__((stdcall)) and __stdcall worrks Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #6 from Andrew Pinski --- (In reply to piersh from comment #4) > struct my_hash > { > my_hash() {} > my_hash(int i = 42) {} // <<-- uncomment for bug > std::size_t operator()(const key &ep) const { return 0; } > }; That

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread piersh at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #5 from piersh at hotmail dot com --- oh, no. scratch that last comment.

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread piersh at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #4 from piersh at hotmail dot com --- is it related to nested classes? this reproduces the issue: uncomment line 9 to repro: #include #include struct key {}; struct my_hash { my_hash() {} //my_hash(int i = 42) {} // <<-

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #3 from Jonathan Wakely --- Yes, and the standard says that instantiating std::unordered_map with incomplete types is undefined.

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #2 from Andrew Pinski --- Mainly read bug 102199 comment #7

[Bug c++/107022] error: use of deleted function 'std::unordered_map

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 --- Comment #1 from Andrew Pinski --- This is another when is the inner type complete and the constructor can be used issues really.

[Bug c++/107022] New: error: use of deleted function 'std::unordered_map

2022-09-23 Thread piersh at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107022 Bug ID: 107022 Summary: error: use of deleted function 'std::unordered_map Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug tree-optimization/107021] [13 Regression] 511.povray_r error with -Ofast -march=znver2 -flto since r13-2810-gb7fd7fb5011106

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107021 --- Comment #2 from Andrew Pinski --- You need -fno-finite-math-only now.

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2022-09-23 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 --- Comment #18 from Pavel M --- (In reply to Jonathan Wakely from comment #17) > (In reply to Josh Triplett from comment #5) > > I'd like to see this as well. While issuing such a warning by default would > > cause numerous warnings with existi

[Bug tree-optimization/107021] [13 Regression] 511.povray_r error with -Ofast -march=znver2 -flto since r13-2810-gb7fd7fb5011106

2022-09-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107021 --- Comment #1 from Martin Liška --- Btw. since the same revision fails TSVC's s1281 w/ -march=znver2 -Ofast. Maybe it will be smaller reproducer.

[Bug tree-optimization/107021] New: [13 Regression] 511.povray_r error with -Ofast -march=znver2 -flto since r13-2810-gb7fd7fb5011106

2022-09-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107021 Bug ID: 107021 Summary: [13 Regression] 511.povray_r error with -Ofast -march=znver2 -flto since r13-2810-gb7fd7fb5011106 Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug fortran/106945] [10/11/12/13 Regression] ICE: 'verify_gimple' failed

2022-09-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106945 --- Comment #3 from anlauf at gcc dot gnu.org --- It is -fcheck=bounds that is required to trigger the failure. Replacing -ftrapv by -fsanitize=undefined produces the same error.

[Bug lto/99828] inlining failed in call to ‘always_inline’ ‘memcpy’: --param max-inline-insns-auto limit reached

2022-09-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99828 --- Comment #16 from Martin Liška --- (In reply to andi from comment #15) > > Provided I cannot reproduce on the current kernel, where exactly does this > > come > > from? > > Usually I had to do a longer loop of randconfig builds to find it. I

[Bug c++/107020] [OpenMP][UBSAN] ICE during GIMPLE pass: sanopt via ubsan_expand_vptr_ifn: "output_operand: invalid expression as operand"

2022-09-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107020 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 --- Comment #10 from Jonathan Wakely --- We even have tests for the bogus tsan errors: g++.dg/tsan/pthread_cond_clockwait.C (which fails on machines with an old glibc)

[Bug middle-end/106982] [10/11/12/13 Regression][OpenACC] ICE incorrect sharing of tree nodes with nested reduction / .GOACC_REDUCTION

2022-09-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106982 --- Comment #1 from Tobias Burnus --- Submitted patch: https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602138.html

[Bug lto/99828] inlining failed in call to ‘always_inline’ ‘memcpy’: --param max-inline-insns-auto limit reached

2022-09-23 Thread andi at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99828 --- Comment #15 from andi at firstfloor dot org --- > Provided I cannot reproduce on the current kernel, where exactly does this > come > from? Usually I had to do a longer loop of randconfig builds to find it. It only happens in some specific c

[Bug tree-optimization/107009] [13 Regression] massive unnecessary code blowup in vectorizer

2022-09-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107009 --- Comment #7 from Aldy Hernandez --- Created attachment 53622 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53622&action=edit DOM patch in testing to calculate ranges for all ranges involving unreachable edges

[Bug tree-optimization/107009] [13 Regression] massive unnecessary code blowup in vectorizer

2022-09-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107009 --- Comment #6 from Aldy Hernandez --- Created attachment 53621 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53621&action=edit bitwise and op1_range patch in testing

[Bug tree-optimization/107009] [13 Regression] massive unnecessary code blowup in vectorizer

2022-09-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107009 --- Comment #5 from Aldy Hernandez --- There are two things needed to fix this regression. First, we need an op1_range entry for bitwise-and, so that the 2->4 edge range has the correct nonzero bits for n_12. [local count: 118111600]:

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 --- Comment #9 from Jonathan Wakely --- The new interceptor was merged as g:d0fee87e0ce24f066cde3dbf9605abce24dd75e1

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-09-23 Thread jakob.weisblat at zoom dot us via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 --- Comment #8 from Jakob Weisblat --- @Andrew: (In reply to Andrew Pinski from comment #7) Thanks! I'll try upgrading to GCC 12 to see if my issues go away.

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 --- Comment #7 from Andrew Pinski --- (In reply to Jakob Weisblat from comment #6) > I think this is the same issue as > https://github.com/google/sanitizers/issues/1259. > > It was fixed in clang at > https://github.com/llvm/llvm-project/comm

[Bug c++/107020] [OpenMP][UBSAN] ICE during GIMPLE pass: sanopt via ubsan_expand_vptr_ifn: "output_operand: invalid expression as operand"

2022-09-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107020 --- Comment #1 from Tobias Burnus --- Fails with GCC 11 to compile with: input1.ii:10:18: error: ‘main_devPtr’ referenced in target region does not have a mappable type Gives an ICE with GCC 12 (+ mainline). Thus, it is a p

[Bug c++/107020] New: [OpenMP][UBSAN] ICE during GIMPLE pass: sanopt via ubsan_expand_vptr_ifn: "output_operand: invalid expression as operand"

2022-09-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107020 Bug ID: 107020 Summary: [OpenMP][UBSAN] ICE during GIMPLE pass: sanopt via ubsan_expand_vptr_ifn: "output_operand: invalid expression as operand" Product: gcc Ve

[Bug c++/88804] incorrect unused but set static variable in templated lambda

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88804 Andrew Pinski changed: What|Removed |Added CC||gccbugbjorn at fahller dot se --- Commen

[Bug c++/96400] False positive on Wunused-but-set-variable for static constexpr var used in lambda

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

[Bug c++/88804] incorrect unused but set static variable in templated lambda

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88804 Andrew Pinski changed: What|Removed |Added CC||cuzdav at gmail dot com --- Comment #5 f

[Bug c++/105571] Spurious "set but not used" on static constexpr local, used in lambda

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

[Bug c++/88804] incorrect unused but set static variable in templated lambda

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88804 Andrew Pinski changed: What|Removed |Added Summary|Inconsistently diagnosed|incorrect unused but set

[Bug c++/88804] Inconsistently diagnosed unused but set static variable in lambda

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88804 Andrew Pinski changed: What|Removed |Added CC||mario at klebsch dot de --- Comment #3 f

[Bug c++/107019] -Wunused-but-set-variable false positive for static variable in lambda with boost

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

[Bug c++/106784] Add __is_convertible built-in

2022-09-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106784 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/106784] Add __is_convertible built-in

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106784 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:8a7bcf95a82c3dd68bd4bcfbd8432eb970575bc2 commit r13-2822-g8a7bcf95a82c3dd68bd4bcfbd8432eb970575bc2 Author: Marek Polacek Date: Tu

[Bug c++/96400] False positive on Wunused-but-set-variable for static constexpr var used in lambda

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96400 Andrew Pinski changed: What|Removed |Added CC||johelegp at gmail dot com --- Comment #2

[Bug c++/105743] Bogus unused but set lambda warning

2022-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105743 --- Comment #2 from Andrew Pinski --- Actually this is a dup of bug 96400. *** This bug has been marked as a duplicate of bug 96400 ***

[Bug ipa/102310] [11/12/13 Regression] ICE in visit_ref_for_mod_analysis with OpenACC

2022-09-23 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102310 --- Comment #8 from Thomas Schwinge --- I found that the '-O2' ICE 'during IPA pass: cp' originally reported here as well as the '-O0' ICE 'during RTL pass: expand' do disappear with Julian's recent r13-2665-g23baa717c991d77f206a9358ce2c04960ccf

[Bug c++/107019] -Wunused-but-set-variable false positive for static variable in lambda with boost

2022-09-23 Thread mario at klebsch dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107019 Mario Klebsch changed: What|Removed |Added CC||mario at klebsch dot de --- Comment #1

[Bug c++/107019] New: -Wunused-but-set-variable false positive for static variable in lambda with boost

2022-09-23 Thread mario at klebsch dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107019 Bug ID: 107019 Summary: -Wunused-but-set-variable false positive for static variable in lambda with boost Product: gcc Version: 11.3.0 Status: UNCONFIRMED Seve

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-09-23 Thread jakob.weisblat at zoom dot us via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 Jakob Weisblat changed: What|Removed |Added CC||jakob.weisblat at zoom dot us --- Comm

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51437 Jonathan Wakely changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #22 from Jan Žižka --- Great, our production code builds just fine with af611afe5fcc908a6678b5b205fb5af7d64fbcb2 :-) thanks a lot.

[Bug tree-optimization/107009] [13 Regression] massive unnecessary code blowup in vectorizer

2022-09-23 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107009 --- Comment #4 from Aldy Hernandez --- (In reply to Richard Biener from comment #3) > # RANGE [irange] size_t [1, +INF] > size_t n_12(D) = n; > > the nonzero bits info on 'n' is gone. DOM2 used to produce that and > CCP3 elides the __built

[Bug bootstrap/107018] New: [13 Regression] libgcc unwind-dw2-fde references undeclared variable

2022-09-23 Thread dje at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107018 Bug ID: 107018 Summary: [13 Regression] libgcc unwind-dw2-fde references undeclared variable Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2022-09-23 Thread roi.jacobson1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 --- Comment #9 from Roy Jacobson --- Thanks for the patch! I wonder if it would handle coroutines correctly. Clang has this open bug https://github.com/llvm/llvm-project/issues/47179 that is related to this optimization.

[Bug preprocessor/48839] #error should terminate compilation - similar to missing #include

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48839 --- Comment #11 from Jonathan Wakely --- (In reply to Paolo Carlini from comment #8) > about the other compilers? For sure some are following the current gcc > behaviour, for compatibility, I suspect ICC for example. Should we also have > a comma

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #21 from Richard Biener --- try again!

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #20 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:af611afe5fcc908a6678b5b205fb5af7d64fbcb2 commit r13-2817-gaf611afe5fcc908a6678b5b205fb5af7d64fbcb2 Author: Richard Biener Date:

[Bug analyzer/107017] New: RFE: support printf-style formatted functions in -fanalyzer

2022-09-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107017 Bug ID: 107017 Summary: RFE: support printf-style formatted functions in -fanalyzer Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal P

[Bug libstdc++/103755] {has,use}_facet() and iostream constructor performance

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103755 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug debug/107012] [debug, dwarf-5] Missing line information for evaluating macros

2022-09-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107012 --- Comment #2 from Jakub Jelinek --- I don't see anything wrong on what GCC emits. If I compile with -O3 -g3 -gdwarf-4 -dA -nostdinc so that stdc-predef.h isn't included vs. -O3 -g3 -gdwarf-5 -dA -nostdinc, in .debug_macro I see for DWARF 4:

[Bug c/107016] New: [meta-bug] tracker bug for supporting "sparse" attributes in GCC

2022-09-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107016 Bug ID: 107016 Summary: [meta-bug] tracker bug for supporting "sparse" attributes in GCC Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: meta-bug

[Bug c/107001] ICE in expand_gimple_stmt_1, at cfgexpand.cc:4017 since r9-3941-g28567c40e2c7c88e

2022-09-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107001 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #19 from Richard Biener --- (In reply to Jan Žižka from comment #18) > Created attachment 53617 [details] > Third reproducer failing with 9baee6181b4e427e0b5ba417e51424c15858dce7 > > I did cherry-pick 9baee6181b4e427e0b5ba417e51424c

[Bug libstdc++/107015] __debug::bitset has different ABI for -std=c++98

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107015 --- Comment #2 from Jonathan Wakely --- And we don't even do that check for the const overload, even in debug mode! // _GLIBCXX_RESOLVE_LIB_DEFECTS // 11. Bitset minor problems _GLIBCXX_CONSTEXPR bool operator[](size_t _

[Bug libstdc++/107015] __debug::bitset has different ABI for -std=c++98

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107015 --- Comment #1 from Jonathan Wakely --- In C++11 and later (when bitset::reference doesn't use the debug mode iterator validity checks) the only benefit to __debug::bitset is that we check the argument to operator[] is in range, using __glibcxx_

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread jan.zizka at nokia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #18 from Jan Žižka --- Created attachment 53617 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53617&action=edit Third reproducer failing with 9baee6181b4e427e0b5ba417e51424c15858dce7 I did cherry-pick 9baee6181b4e427e0b5ba417

[Bug libstdc++/107015] New: __debug::bitset has different ABI for -std=c++98

2022-09-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107015 Bug ID: 107015 Summary: __debug::bitset has different ABI for -std=c++98 Product: gcc Version: 12.2.1 Status: UNCONFIRMED Keywords: ABI Severity: normal Priori

[Bug lto/107014] flatten+lto fails the kernel build

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

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 --- Comment #7 from Alexander Monakov --- I wanted to understand what gets exposed in LTO mode that causes a blowup. I'd say flatten is not appropriate for this function (I don't think you want to force inlining of memset or _find_next_bit?), s

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread jirislaby at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 --- Comment #6 from Jiri Slaby --- (In reply to Alexander Monakov from comment #5) > I mean now, about compile time blowup with LTO. No, LTO is not supported by upstream (yet) ;). The point is what should I do when submitting the LTO support.

[Bug c/106981] [10/11/12/13 Regression][OpenACC][OpenMP] ICE in decompose, at wide-int.h:984 with '#pragma omp/acc atomic capture'

2022-09-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106981 Jakub Jelinek changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/106981] [10/11/12/13 Regression][OpenACC][OpenMP] ICE in decompose, at wide-int.h:984 with '#pragma omp/acc atomic capture'

2022-09-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106981 --- Comment #7 from Jakub Jelinek --- (In reply to Tobias Burnus from comment #6) > (In reply to Jakub Jelinek from comment #5) > > > The fix could be either partially backport what C++ FE did in > > --- gcc/c/c-typeck.cc.jj2022-09-23 09:02

[Bug c/106981] [10/11/12/13 Regression][OpenACC][OpenMP] ICE in decompose, at wide-int.h:984 with '#pragma omp/acc atomic capture'

2022-09-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106981 --- Comment #6 from Tobias Burnus --- (In reply to Jakub Jelinek from comment #5) > The fix could be either partially backport what C++ FE did in > --- gcc/c/c-typeck.cc.jj 2022-09-23 09:02:56.525318361 +0200 > +++ gcc/c/c-typeck.cc 2022-0

[Bug c/106981] [10/11/12/13 Regression][OpenACC][OpenMP] ICE in decompose, at wide-int.h:984 with '#pragma omp/acc atomic capture'

2022-09-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106981 --- Comment #5 from Jakub Jelinek --- Slightly more reduced: void foo (int a, double *b, double *c, double *d, long long e) { #pragma omp atomic capture c[a] = d[((int) (e / 10 + 1))] = b[a] + d[((int) e / 10 + 1)]; } The fix could be either p

[Bug target/106919] [13 Regression] RTL check: expected code 'set' or 'clobber', have 'if_then_else' in s390_rtx_costs, at config/s390/s390.cc:3672on s390x-linux-gnu since r13-2251-g1930c5d05ceff2

2022-09-23 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106919 --- Comment #8 from rdapp at gcc dot gnu.org --- Yes, one of dst and dest is superflous. Looks good like that. I bootstrapped the same patch locally already, no regressions.

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 --- Comment #5 from Alexander Monakov --- (In reply to Jiri Slaby from comment #4) > > I am surprised that "flatten" blows up on this function. Is that with any > > config, or again some specific settings like gcov? Is there an existing lkml > >

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread jirislaby at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 --- Comment #4 from Jiri Slaby --- (In reply to Alexander Monakov from comment #3) > It was added to force inlining of small helpers that outgrow limits when > building with gcov profiling: (with clang) > I am surprised that "flatten" blows up

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Com

[Bug target/106966] alpha cross build crashes gcc-12 "internal compiler error: in emit_move_insn"

2022-09-23 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966 Uroš Bizjak changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 --- Comment #2 from Richard Biener --- The whole point of "flatten" is that there's _no_ limit. Looking at the function I don't see why you'd ever use that? If the desire is to force inlining a specific call then I think there's currently no g

[Bug lto/107014] flatten+lto fails the kernel build

2022-09-23 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 Martin Liška changed: What|Removed |Added Last reconfirmed||2022-09-23 Status|UNCONFIRME

[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<>>, missed FRE

2022-09-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922 --- Comment #17 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a0de11d0d22054b6fd76a0730a3ec807542379d0 commit r13-2806-ga0de11d0d22054b6fd76a0730a3ec807542379d0 Author: Jakub Jelinek Date:

[Bug lto/107014] New: flatten+lto

2022-09-23 Thread jirislaby at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107014 Bug ID: 107014 Summary: flatten+lto Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned