[Bug c++/109390] New: Does not reject specialized non-type argument of dependent type in class template partial specialization

2023-04-03 Thread sbergman at redhat dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- As seen with e.g. gcc-c++-12.2.1-4.fc37.x86_64, it does not reject

[Bug tree-optimization/106881] [13 Regression] ice in init_from_control_deps, at gimple-predicate-analysis.cc:1740 since r13-2500-g0a4a2667dc115ca7

2022-09-08 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106881 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug tree-optimization/106891] internal compiler error: in init_from_control_deps, at gimple-predicate-analysis.cc:1740

2022-09-08 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106891 Stephan Bergmann changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/106891] internal compiler error: in init_from_control_deps, at gimple-predicate-analysis.cc:1740

2022-09-08 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106891 --- Comment #1 from Stephan Bergmann --- Created attachment 53553 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53553=edit preprocessed source, gzipped to avoid bugzilla size limit

[Bug tree-optimization/106891] New: internal compiler error: in init_from_control_deps, at gimple-predicate-analysis.cc:1740

2022-09-08 Thread sbergman at redhat dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: rguenth at gcc dot gnu.org Target Milestone: --- Bisecting shows this started with <ht

[Bug target/106355] Linux s390x -O2 argument passing miscompile

2022-07-20 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106355 --- Comment #2 from Stephan Bergmann --- (In reply to Richard Biener from comment #1) > Did you see whether this is changed behavior from GCC 11? I didn't check that myself, but the Debian LibreOffice maintainer claims that he sees the same

[Bug other/106355] New: Linux s390x -O2 argument passing miscompile

2022-07-19 Thread sbergman at redhat dot com via Gcc-bugs
: other Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- (I ran into this when trying to build recent LibreOffice 7.5 master on Fedora 36 on s390x causing a crash in one of the executables generated during the build. I tracked

[Bug c++/87729] Please include -Woverloaded-virtual in -Wall

2022-07-08 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87729 --- Comment #12 from Stephan Bergmann --- (In reply to CVS Commits from comment #11) > The master branch has been updated by Jason Merrill : > > https://gcc.gnu.org/g:81bec060e31b6ef2feeb3046c6f13a207c6f698a > > commit

[Bug c++/87729] Please include -Woverloaded-virtual in -Wall

2022-07-05 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87729 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-19 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 Stephan Bergmann changed: What|Removed |Added Resolution|--- |FIXED

[Bug libstdc++/105291] New: include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-16 Thread sbergman at redhat dot com via Gcc-bugs
Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- Since <https://github.com/llvm/llvm-project/com

[Bug preprocessor/104030] [12 Regression] -Wbidi-chars should not warn about UCNs

2022-01-14 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104030 --- Comment #7 from Stephan Bergmann --- (In reply to Jakub Jelinek from comment #2) > Of course, if something like libreoffice (I bet) carefully ensures it is > paired, but constructs it from smaller separate literals, then it is fine. (Or

[Bug preprocessor/104030] New: -Wbidi-chars should not warn about UCNs

2022-01-14 Thread sbergman at redhat dot com via Gcc-bugs
: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- As discussed in the sub-thread starting at <https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585710.html> "Re: [PATCH] libcpp: Implement -Wbidi-chars f

[Bug c++/104007] New: new (std::nothrow) S[n] always calls ~S

2022-01-13 Thread sbergman at redhat dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- Apparently a recent regression on GCC trunk: > $ cat test.cc > #include > #include > struct S { ~S() { std::abort(); } }; > int main() { > new (std::nothrow

[Bug c++/103991] New: Bogus -Wreturn-type with constexpr if and local var with destructor

2022-01-12 Thread sbergman at redhat dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- Apparently a recent regression on GCC trunk: > $ cat test.cc > struct S { ~S(); }; > int f() { > S s; > if

[Bug c++/103597] New: False -Wimplicit-fallthrough= involving macro

2021-12-07 Thread sbergman at redhat dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- I think this is a recent regression on GCC 12 trunk (I'm at basepoints/gcc-12-5818-g30a08286e67; it doesn't happen with e.g. gcc-c++-11.2.1-1.fc35.x86_64): > $ cat test

[Bug libstdc++/103022] New: std::begin on empty std::valarray causes _GLIBCXX_DEBUG assertion

2021-11-01 Thread sbergman at redhat dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with GCC 11.2.1: > $ cat test.cc > #include > int main() { > std::valarray v; > std::begin

[Bug c++/102101] New: Another spurious -Warray-bounds

2021-08-27 Thread sbergman at redhat dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: msebor at gcc dot gnu.org Target Milestone: --- On recent trunk (basepoints/gcc-12-3135-gdb3d4129b6f): > $ cat test.cc > #include > #include > long dummy(); > void * rtl

[Bug c++/68257] Reject empty abi_tag attribute on inline namespace

2021-08-16 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68257 --- Comment #10 from Stephan Bergmann --- (In reply to Andrew Pinski from comment #9) > There does seems some inconsitency though: > inline namespace n __attribute__((__abi_tag__(""))) {} > is rejected but > inline namespace n

[Bug c++/101600] New: Spurious -Warray-bounds

2021-07-23 Thread sbergman at redhat dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent GCC 12 trunk (but not with e.g. gcc-c++-11.1.1-3.fc34.x86_64): > $ cat test.cc > struct S1 { virtual ~S1(); }; > struct S2 { int m; }; > struct S3 { virtual ~S3(); }; >

[Bug c++/100797] [10/11/12 Regression] using declaration causing virtual call with wrongly adjusted this pointer

2021-05-31 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100797 --- Comment #6 from Stephan Bergmann --- (In reply to Jason Merrill from comment #5) > Stephan, can you verify that this fixes the LibreOffice issue? Yes, thanks, tested the master branch fix and it fixes the LibreOffice issue for me.

[Bug c++/100797] New: using declaration causing virtual call with wrongly adjusted this pointer

2021-05-27 Thread sbergman at redhat dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- (I stripped this down from an issue found in LibreOffice, <https://git.libreoffice.org/c

[Bug preprocessor/99446] [11 Regression] ICE in linemap_position_for_loc_and_offset, at libcpp/line-map.c:1005

2021-03-17 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99446 --- Comment #3 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #2) > At least with recent GCC master (bc2127767a0076afdbc9075fda29f97f82ef7ec6), > I can consistently reproduce the following: what I failed to include in

[Bug preprocessor/99446] [11 Regression] ICE in linemap_position_for_loc_and_offset, at libcpp/line-map.c:1005

2021-03-17 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99446 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug c++/98752] New: wrong "error: ‘this’ is not a constant expression" with consteval constructor

2021-01-19 Thread sbergman at redhat dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with gcc-c++-10.2.1-9.fc33.x86_64 and with a local GCC 11 trunk build: > $ cat test.cc > struc

[Bug c++/98305] spurious -Wmismatched-new-delete on template instance

2020-12-17 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98305 --- Comment #3 from Stephan Bergmann --- (In reply to Martin Sebor from comment #2) > https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562141.html Thanks; can confirm that fixes my LibreOffice build.

[Bug c++/98305] New: Incomprehensible -Wmismatched-new-delete warning

2020-12-15 Thread sbergman at redhat dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent GCC 11 trunk (at git commit 8dede2411195eb2fd672d8d0c758f94732bd6d77): > $ cat test.cc > #include > template struct Reference {}; > templa

[Bug c++/96994] New: Missing code from consteval constructor initializing const variable

2020-09-09 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with a local build of recent GCC 11 trunk and with gcc-c++-10.2.1-1.fc32.x86_64: > $ cat test.cc > #include >

[Bug c++/96878] Failed class template argument deduction in unevaluated, parenthesized context

2020-09-01 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96878 --- Comment #1 from Stephan Bergmann --- A similar failure happens with typeid (but where the parentheses are not redundant), and I naively assume it's the same underlying issue: > $ cat test.cc > #include > template struct S { S(char const (&

[Bug c++/96878] New: Failed class template argument deduction in unevaluated, parenthesized context

2020-09-01 Thread sbergman at redhat dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with recent GCC 11 trunk and with gcc-c++-10.2.1-1.fc32.x86_64: > $ cat test.cc > template struct S {

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-22 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #13 from Stephan Bergmann --- FTR, with that second patch building recent LibreOffice succeeds without false positives.

[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

2020-07-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #11 from Stephan Bergmann --- (In reply to Martin Sebor from comment #10) > Patch for the static cast: > https://gcc.gnu.org/pipermail/gcc-patches/2020-July/550231.html LibreOffice runs into the same issue, but while the above patch

[Bug c++/95719] New: SEGV in tree_check

2020-06-17 Thread sbergman at redhat dot com
: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With a locally-built recent GCC 11 trunk (git rev 48b6386f5d0bdcbe5c901678a043516d544a9f7f), but not with e.g. gcc-c++-10.1.1-1.fc32.x86_64: > $ cat test.cc > struct S1 { virtual ~S1(); }; >

[Bug c++/95103] Unexpected -Wclobbered in bits/vector.tcc with -O2

2020-05-14 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95103 --- Comment #2 from Stephan Bergmann --- (In reply to Richard Biener from comment #1) > Does it work placing the initial part of the function in a separate { }? Yes, > @@ -14,11 +14,13 @@ > return true; > } > void f3() { > +{ >

[Bug c++/95103] New: Unexpected -Wclobbered in bits/vector.tcc with -O2

2020-05-13 Thread sbergman at redhat dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- I have seen this with at least some GCC 7, and still see it with GCC 10 and with recent trunk: > $ cat test.cc > #include > #include > struct S {

[Bug tree-optimization/92893] [10 Regression] Unhelpful -Wstringop-overflow warning for a trailing one-element array

2020-05-01 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92893 --- Comment #9 from Stephan Bergmann --- (In reply to Martin Sebor from comment #2) > Defining Str like so works for the test case: > > struct Str { > template Str(Cat c) > { > struct Flex { char c, a[]; } *p = (Flex*)get(); >

[Bug lto/94202] New: lto1: internal compiler error: in do_estimate_edge_time, at ipa-inline-analysis.c:222

2020-03-17 Thread sbergman at redhat dot com
Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: marxin at gcc dot gnu.org Target Milestone: --- At least with current GCC 10 trunk on Linux x86-64: > $ cat test

[Bug c++/93922] [10 Regression] Fails to emit inline class template destructor instantiation, but which is called

2020-03-11 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93922 Stephan Bergmann changed: What|Removed |Added Status|RESOLVED|VERIFIED --- Comment #9 from Stephan

[Bug c++/93922] New: Fails to emit inline class template destructor instantiation, but which is called

2020-02-25 Thread sbergman at redhat dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- I came across this when building LibreOffice and its bundled Skia with recent GCC 10 trunk and it failed to link due

[Bug c++/93824] -Wredundant-tags false positives

2020-02-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93824 --- Comment #5 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #4) > So users will have to be careful when they fix a -Wredundant-tags warning in > an included file. They may have to introduce a forward declaration into the

[Bug c++/93824] -Wredundant-tags false positives

2020-02-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93824 --- Comment #4 from Stephan Bergmann --- (In reply to Martin Sebor from comment #3) > Ah, I see. I'm not sure there's anything I can do about the first case -- > the warning there is by design. So users will have to be careful when they fix a

[Bug c++/93824] -Wredundant-tags false positives

2020-02-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93824 --- Comment #2 from Stephan Bergmann --- (In reply to Martin Sebor from comment #1) > The tag is redundant in both cases and can be removed without causing an > ambiguity. Why do you think the warnings are wrong? In the test2.cc case, S has

[Bug c++/93869] New: ICE in contains_struct_check with -Wmismatched-tags upon redundant typename

2020-02-21 Thread sbergman at redhat dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: msebor at gcc dot gnu.org Target Milestone: --- With recent GCC trunk (incl. the fix from bug 93801 comment 3, though I do

[Bug c++/93824] New: -Wredundant-tags false positives

2020-02-19 Thread sbergman at redhat dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: msebor at gcc dot gnu.org Target Milestone: --- With recent GCC trunk and > $ cat incA.h > struct S {}; > $ cat incB.h > void f(struct S *); >

[Bug c++/93801] New: False -Wmismatched-tags upon redundant typename

2020-02-18 Thread sbergman at redhat dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: msebor at gcc dot gnu.org Target Milestone: --- With recent GCC trunk: > $ cat test.cc > namespace N { struct S {}; } > typename N::S s; > > $ g++ -fsyntax-on

[Bug c++/93273] New: "error: missing definition" and "internal compiler error: verify_ssa failed", in code involving _setjmp

2020-01-15 Thread sbergman at redhat dot com
0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk (at g:ddd792fa53345180c782494aa597e438a73b6248): > $ cat

[Bug c++/93238] [10 Regression] ICE in tree check: expected integer_cst, have mult_expr in to_wide, at tree.h:5855 since g:337ea6b216afd412

2020-01-12 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93238 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug c++/93173] New: "error: incorrect sharing of tree nodes" and "internal compiler error: verify_gimple failed"

2020-01-06 Thread sbergman at redhat dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- I think this only started recently on GCC trunk, I observe it at least with a bu

[Bug c++/92893] [10 Regression] Unhelpful -Wstringop-overflow warning for a trailing one-element array

2019-12-16 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92893 --- Comment #4 from Stephan Bergmann --- (FWIW, the amount of cases where this issue hits the build of LibreOffice seems to have increased further with more recent GCC trunk builds after I filed the issue.)

[Bug c++/92893] New: Unhelpful -Wstringop-overflow warning

2019-12-10 Thread sbergman at redhat dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- Recent GCC 10 trunk produces a -Wstringop-overflow warning that at least gcc-c++-9.2.1-1.fc31.x86_64 does not produce. Unfortunately the minimal reproducer I came up with is still

[Bug c++/88136] -Wdeprecated-copy is draconian and shouldn't be in -Wall

2019-11-28 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88136 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug preprocessor/92696] #pragma GCC diagnostic ... interferes with if/else

2019-11-28 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92696 --- Comment #5 from Stephan Bergmann --- ...but something that needs proper documentation?

[Bug preprocessor/92696] New: #pragma GCC diagnostic ... interferes with if/else

2019-11-27 Thread sbergman at redhat dot com
Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with "gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)" and with recent GCC 10 trunk: > $ cat test.c > void f(int); > void g(int b) { &

[Bug c++/92598] New: explicit specialization of template from unnamed namespace using unqualified-id in enclosing namespace

2019-11-20 Thread sbergman at redhat dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with "gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)", > $ cat test.cc > name

[Bug c++/92201] [9/10 Regression] "internal compiler error: ‘verify_gimple’ failed" with -std=c++2a

2019-10-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92201 --- Comment #3 from Stephan Bergmann --- (In reply to Jakub Jelinek from comment #2) > Untested fix. Building LibreOffice (from which I had distilled the reproducer) works fine for me again with that patch. Thanks!

[Bug c++/92201] New: "internal compiler error: ‘verify_gimple’ failed" with -std=c++2a

2019-10-23 Thread sbergman at redhat dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk: > $ gcc/trunk/inst/bin/g++ --version > g++ (GCC) 10.0.0 20191023 (experimental) > Copyright (C)

[Bug c++/92001] New: missing -Wclass-memaccess with array as first argument to memset

2019-10-05 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: msebor at gcc dot gnu.org Target Milestone: --- With at least both GCC 9.2.1 and recent trunk towards GCC 10, #include struct S { S

[Bug preprocessor/71102] _Pragma("GCC warning ...") should concatenate string literals

2019-09-26 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71102 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug c++/91391] Bogus -Wcomma-subscript

2019-08-07 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91391 --- Comment #5 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #0) [...] > template-parameter-list, and I wonder whether it should warn about a > (hypothetical) comma expression in a call to an overloaded operator [] at >

[Bug c++/91391] New: Bogus -Wcomma-subscript

2019-08-07 Thread sbergman at redhat dot com
: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent git master (4ad9380bafd772cea54392c7189cab07a2121fc9 here): > $ cat test.cc > #include > #include > int main() { > std::map, int> m; > m[std::pair(0

[Bug c++/90909] New: call devirtualized to pure virtual

2019-06-18 Thread sbergman at redhat dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- Recent trunk (I'm at git rev 665de37f60068204ea9b4757dd79bc7f75588733) started to miscompile > $ cat test.cc > struct S1 { virtual void f() = 0; }; > struct S2: S1 { virtu

[Bug debug/90575] -gsplit-dwarf leaves behind .dwo file in cwd

2019-05-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90575 --- Comment #3 from Stephan Bergmann --- Or, to put it differently: It looks odd that while `gcc -gsplit-dwarf -c test.c -o /path/test.o` puts test.dwo next to test.o into /path/, `gcc -gsplit-dwarf test.c -o /path/test` puts it into cwd.

[Bug debug/90575] -gsplit-dwarf leaves behind .dwo file in cwd

2019-05-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90575 --- Comment #2 from Stephan Bergmann --- (In reply to Richard Biener from comment #1) > But that's how -gsplit-dwarf is designed. Shouldn't it then be documented where any .dwo files are stored? At least in combination with -o in comment 0,

[Bug debug/90575] New: -gsplit-dwarf leaves behind .dwo file in cwd

2019-05-22 Thread sbergman at redhat dot com
: debug Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with current GCC 9.1.1: > $ mkdir testdir > $ echo 'int main(void) { return 0; }' > testdir/test.c > $ gcc -gsplit-dwarf testdir/test.c -o testdir

[Bug c++/86586] [7/8/9 Regression] -Wsign-compare affects code generation

2019-05-14 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86586 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug preprocessor/90382] New: internal compiler error: in linemap_macro_map_loc_to_exp_point, at libcpp/line-map.c:1061

2019-05-07 Thread sbergman at redhat dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- I encountered this ICE with recent GCC trunk with #include "boost/spirit/in

[Bug c++/89507] New: bogus "size of array exceeds maximum object size"

2019-02-26 Thread sbergman at redhat dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com CC: caolanm at redhat dot com, msebor at gcc dot gnu.org Target Milestone: --- With current trunk (towards GCC 9), > $ cat test.cc > unsigned char const n = 128;

[Bug ipa/89009] [7/8/9 Regression] Miscompilation (missing function call) with -fvisibility=hidden -fpic -O2 -fno-inline

2019-01-24 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89009 --- Comment #8 from Stephan Bergmann --- ...and adding to the test.cc from comment 0 an additional > $ cat main.cc > void f1(); > struct S1 { static void f2(); }; > struct __attribute__ ((visibility("default"))) S2: S1 { static void f2(); }; >

[Bug ipa/89009] [7/8/9 Regression] Miscompilation (missing function call) with -fvisibility=hidden -fpic -O2 -fno-inline

2019-01-24 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89009 --- Comment #6 from Stephan Bergmann --- (In reply to Martin Liška from comment #5) > Well, I believe the test-case is invalid as one can't have hidden visibility > and then defined S1::f2 in a different translation unit. Why? Isn't hidden

[Bug c++/89009] New: Miscompilation (missing function call) with -fvisibility=hidden -fpic -O2 -fno-inline

2019-01-23 Thread sbergman at redhat dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- On Linux x86-64 with at least with GCC 8.2.1 (gcc-8.2.1-6.fc29.x86_64) and recent trunk towards GCC 9, compiling

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #18 from Stephan Bergmann --- (In reply to Jonathan Wakely from comment #17) > Yes please. bug 87378

[Bug c++/87378] New: False -Wredundant-move (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- On recent trunk, with bug 87150 fixed (so that the compiler agrees that the std::move is actually required): > ~ cat test.cc > #include > struct S1 { S1(S1 &&); }

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-21 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #16 from Stephan Bergmann --- (In reply to Stephan Bergmann from comment #15) > I see that with the fix from comment 13 included, the slightly changed source > > #include > struct S1 { S1(S1 &&); }; > struct S2: S1 {}; > S1

[Bug c++/87150] [8 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-10 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #15 from Stephan Bergmann --- I see that with the fix from comment 13 included, the slightly changed source #include struct S1 { S1(S1 &&); }; struct S2: S1 {}; S1 f(S2 s) { return std::move(s); } causes -Wredundant-move

[Bug c++/87150] [8/9 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-09-07 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #9 from Stephan Bergmann --- (In reply to Marek Polacek from comment #8) > It appears that the sentiment is that this testcase should actually be > valid Do you have a reference for that? The reason for this not to be valid,

[Bug c++/87150] [8/9 Regression] move ctor wrongly chosen in return stmt (derived vs. base)

2018-08-30 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150 --- Comment #3 from Stephan Bergmann --- (In reply to Jakub Jelinek from comment #2) > This changed with r251035 aka PR80452 aka C++ Core issue 1579. > So, is this really invalid? but CWG1579 didn't change the "if the type of the first

[Bug c++/87150] New: move ctor wrongly chosen in return stmt (derived vs. base)

2018-08-30 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- struct S1 { S1(S1 &&); }; struct S2: S1 {}; S1 f(S2 s) { return s; } is accepted by GCC 8.1 but violates [class.copy.elision]/

[Bug libstdc++/86658] New: Debug mode: std::copy(..., std::inserter(...)) causes "Error: attempt to copy-construct an iterator from a singular iterator."

2018-07-24 Thread sbergman at redhat dot com
oduct: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent GCC trunk: > $ cat test

[Bug c/86196] New: Bogus -Wrestrict on memcpy

2018-06-18 Thread sbergman at redhat dot com
: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk (on Linux x86_64), and doesn't seem to be covered by existing bugs referenced from meta bug 84774: > $ gcc --version > gcc (GCC) 9.0.0 20180618 (experimental) > Copyright

[Bug c++/71882] elaborated-type-specifier friend not looked up in unnamed namespace

2018-03-16 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71882 --- Comment #3 from Stephan Bergmann --- (In reply to Jonathan Wakely from comment #2) > 10.3.1.2 [namespace.memdef] p3 says "the lookup to determine whether the > entity has been previously declared shall not consider any scopes outside > the

[Bug c++/83942] New: False -Wunused-but-set-variable when const scoped enum is cast to int

2018-01-19 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk "g++ (GCC) 8.0.1 20180119 (experimental)" towards GCC 8: > $ cat test.cc > enum class E {

[Bug c++/83534] New: C++17: typeinfo for noexcept function lacks noexcept information

2017-12-21 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with current trunk towards GCC 8.0, but also with GCC 7.2.1: > ~ cat test.cc > #include > #include > void f1(

[Bug c++/81796] New: error: no matching function for call to ‘S2::operator delete(void*)’

2017-08-10 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- > $ g++ --version > g++ (GCC) 8.0.0 20170810 (experimental) > Copyright (C) 2017 Free Software Foundation, Inc. > This is f

[Bug c/80354] Poor support to silence -Wformat-truncation=1

2017-04-11 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80354 --- Comment #5 from Stephan Bergmann --- (In reply to Martin Sebor from comment #3) > The warning does just what it's designed to do: point out the potential > unhandled truncation. But it is unusable in practice if there is no reliable way to

[Bug c/80354] Poor support to silence -Wformat-truncation=1

2017-04-10 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80354 --- Comment #2 from Stephan Bergmann --- But that makes this warning extremely hard to use. Is it really useful for -Wall in that case? I came across this with a real-world use-case in the LibreOffice code base, where some code deliberately

[Bug c/80354] New: Poor support to silence -Wformat-truncation=1

2017-04-07 Thread sbergman at redhat dot com
Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk > $ gcc --version > gcc (GCC) 7.0.1 20170406 (experimental) > Copyright (C) 2017 Free Software Foundation, Inc. > This is free software; se

[Bug c/79691] New: -Wformat-truncation suppressed by (and only by) -Og

2017-02-23 Thread sbergman at redhat dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with a recent GCC 7 trunk build ("gcc (GCC) 7.0.1 20170221 (experimental)"), I noticed that -Wformat-truncation warnings happen to not be emitted i

[Bug c++/79679] New: [C++17] Missing destruction of temporary within constructor's mem-initializer-list

2017-02-22 Thread sbergman at redhat dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with a recent GCC trunk build ("gcc (GCC) 7.0.1 20170221 (experimental)"), the below program does

[Bug c++/79661] New: Bogus "destructor is private within this context" only in C++17 mode

2017-02-21 Thread sbergman at redhat dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with a recent GCC trunk build: > $ g++ --version > g++ (GCC) 7.0.1 20170220 (experimental) > Copy

[Bug c++/79533] New: ICE in build_over_call under -std=c++17 in 'S s(static_cast(f()));'

2017-02-15 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with a recent GCC trunk build: > $ g++ --version > g++ (GCC) 7.0.1 20170214 (experimental) > Copyright (C)

[Bug c++/20710] g++ should warn when hiding non-virtual method in base class

2016-10-26 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20710 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-08-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug other/61460] Demangler crash (GDB PR 17043)

2016-08-23 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61460 Stephan Bergmann changed: What|Removed |Added CC||sbergman at redhat dot com

[Bug c++/71882] New: elaborated-type-specifier friend not looked up in unnamed namespace

2016-07-14 Thread sbergman at redhat dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- At least with both GCC 6.1.1 and recent trunk, compiling namespace { struct S; } class C { friend struct S; static void f

[Bug c++/70476] New: C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2016-03-31 Thread sbergman at redhat dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- My reading of the C++11-and-beyond Standard is that the name of a function with extern "C" langu

[Bug c++/69922] New: Bogus -Wnonnull-compare for: ... ? static_cast<T*>(this) : nullptr

2016-02-23 Thread sbergman at redhat dot com
normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With trunk@233631: > $ cat test.cc > struct S2 { virtual ~S2(); }; > struct S1 { > virtual ~S1(); > S2 * f

[Bug c/69914] New: ICE in check_global_declaration, upon -Wunused-variable of an array

2016-02-23 Thread sbergman at redhat dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With recent trunk@233620: > $ cat test.c > typedef struct S { > int a; > void * b; > int c; > } S; > v

[Bug c++/69902] New: Bogus -Wnonnull-compare for: dynamic_cast<T*>() == nullptr

2016-02-22 Thread sbergman at redhat dot com
normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sbergman at redhat dot com Target Milestone: --- With GCC built from trunk@233597: > $ cat test.cc > struct A { virtual ~A(); }; > struct B: A {}; > bool f(A & a)

[Bug preprocessor/69126] [6 regression] _Pragma does not apply if part of a macro

2016-02-01 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69126 --- Comment #24 from Stephan Bergmann --- (In reply to Manuel López-Ibáñez from comment #23) > That is weird. If you use "GCC diagnostic warning" instead of "ignored", you > should be able to see some changes in locations between -O0 and -O1 and

[Bug preprocessor/69126] [6 regression] _Pragma does not apply if part of a macro

2016-02-01 Thread sbergman at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69126 --- Comment #22 from Stephan Bergmann --- (In reply to Jakub Jelinek from comment #20) > Does the http://gcc.gnu.org/ml/gcc-patches/2016-01/msg02347.html workaround > help here in any way? No, unfortunately not. Doesn't change the behaviour in

  1   2   >