[Bug c++/104206] [12 regression] test case c-c++-common/pr72747-2.c fails in r12-6821

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104206 Jason Merrill changed: What|Removed |Added Last reconfirmed||2022-01-26 Ever confirmed|0

[Bug c++/104235] [12 Regression] ICE: in cp_parser_template_id, at cp/parser.cc

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104235 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103984] [12 regression] Possible maybe-uninitialized false positive on shaderc-2021.0 since r12-6329

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

[Bug c++/103984] [12 regression] Possible maybe-uninitialized false positive on shaderc-2021.0 since r12-6329

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103984 --- Comment #5 from Jason Merrill --- (In reply to Sergei Trofimovich from comment #0) > input_files.emplace_back(Z{ > arg.str(), // what is the lifetime of this temporary? This prvalue initializes the 'name' member of the Z temporary,

[Bug c++/103984] [12 regression] Possible maybe-uninitialized false positive on shaderc-2021.0 since r12-6329

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103984 --- Comment #6 from Jason Merrill --- (In reply to Jason Merrill from comment #5) > It is surprising that we warn with a user-provided copy constructor and > don't with a defaulted constructor. It changes the code a bit because it > means strin

[Bug middle-end/103984] [12 regression] Possible maybe-uninitialized false positive on shaderc-2021.0 since r12-6329

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103984 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|NEW Component|c++

[Bug c++/104206] [12 regression] test case c-c++-common/pr72747-2.c fails in r12-6821

2022-01-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104206 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103186] [11/12 Regression] ICE with lambda as default argument in template

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

[Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"

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

[Bug c++/104245] [12 Regression] abseil-cpp 20211102.0 fails with "internal compiler error"

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104245 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/92385] extremely long and memory intensive compilation for brace construction of array member

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92385 Jason Merrill changed: What|Removed |Added Target Milestone|--- |12.0 Known to work|

[Bug c++/53868] Temporary for indirect binding is not destroyed when destructor from initializer temp throws

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53868 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103711] Virtual base destroyed twice when an exception is thrown in a derived class' constructor called from a delegated constructor

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103711 Jason Merrill changed: What|Removed |Added Target Milestone|--- |11.3 Status|ASSIGNED

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

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20040 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/61611] Incorrect exception rethrown from a function-try-catch block when a nested try-catch executes

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61611 Jason Merrill changed: What|Removed |Added Target Milestone|12.0|11.3 Status|ASSIGNED

[Bug c++/96876] missing check for destructibility of base classes in aggregate initialization

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

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

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 --- Comment #18 from Jason Merrill --- (In reply to Martin Sebor from comment #17) > https://developers.redhat.com/blog/2019/03/13/understanding-gcc-warnings- > part-2 Yes, this is a good description of the general problem. > It might seem li

[Bug c++/100198] enum in lambda in pack expansion

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100198 Jason Merrill changed: What|Removed |Added Summary|[12 Regression] ICE with|enum in lambda in pack

[Bug c++/100198] enum in lambda in pack expansion

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100198 Jason Merrill changed: What|Removed |Added Target Milestone|12.0|---

[Bug c++/100282] local class in lambda in pack expansion

2022-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100282 Jason Merrill changed: What|Removed |Added Target Milestone|11.3|--- Keywords|ice-on-invalid-c

[Bug c++/103186] [11 Regression] ICE with lambda as default argument in template

2022-02-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103186 Jason Merrill changed: What|Removed |Added Known to work||12.0 Summary|[11/12 Regressi

[Bug c++/51501] [DR 1433] decltype over-agressive SFINAE

2022-02-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51501 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/33799] Return value's destructor not executed when a local variable's destructor throws

2022-02-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33799 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|10.4

[Bug c++/102191] [C++20] Can't return prvalue with potentially-throwing destructor during constant evaluation

2022-02-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102191 Jason Merrill changed: What|Removed |Added Target Milestone|--- |12.0 Status|ASSIGNED

[Bug c++/104302] [12 Regression] ICE Segmentation fault since r12-6825-g2da90ad39bf8fa9e

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

[Bug c++/104300] [12 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.c:2977 since r12-6326-ge948436eab818c52

2022-02-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104300 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC|

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

2022-02-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100588 Jason Merrill changed: What|Removed |Added Known to work||12.0 --- Comment #2 from Jason Merrill

[Bug c++/104302] [12 Regression] ICE Segmentation fault since r12-6825-g2da90ad39bf8fa9e

2022-02-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104302 Jason Merrill changed: What|Removed |Added Depends on||55227 Resolution|---

[Bug c++/96876] missing check for destructibility of base classes in aggregate initialization

2022-02-08 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96876 Jason Merrill changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug c++/103752] [12 Regression][ICE][modules] with import

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

[Bug c++/103752] [12 Regression][ICE][modules] with import

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103752 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 103752, which changed state. Bug 103752 Summary: [12 Regression][ICE][modules] with import https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103752 What|Removed |Added

[Bug c++/102562] [12 Regression][modules] Failing g++.dg/modules/xtreme-header tests since r12-4067-gc46ecb0112e91c8

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102562 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

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

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 102562, which changed state. Bug 102562 Summary: [12 Regression][modules] Failing g++.dg/modules/xtreme-header tests since r12-4067-gc46ecb0112e91c8 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102562 What

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #7 from Jason Merrill --- (In reply to Jakub Jelinek from comment #3) > Shall it treat the fields that partially fall into the range and partially > don't as padding (ignore them) In short yes, but... What a wacky class hierarchy.

[Bug c++/104477] New: [C++23] Implement P2255R2, type trait to detect reference binding to temporary

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104477 Bug ID: 104477 Summary: [C++23] Implement P2255R2, type trait to detect reference binding to temporary Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug c++/104477] [C++23] Implement P2255R2, type trait to detect reference binding to temporary

2022-02-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104477 Jason Merrill changed: What|Removed |Added Blocks||98940 Last reconfirmed|

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #12 from Jason Merrill --- (In reply to Jakub Jelinek from comment #11) > Trying clang++ it agrees with g++ that both c8 and c7 are 32-bytes, contain > 2 vtable pointers at offsets 0 and 16 into the objects and that c8.c is at > offs

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #14 from Jason Merrill --- (In reply to Jakub Jelinek from comment #13) > So, perhaps if RECORD_TYPE type has TYPE_BINFO in clear_padding_type, we > should be ignoring all the DECL_ARTIFICIAL unnamed fields in the structure > and ins

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #16 from Jason Merrill --- Created attachment 52410 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52410&action=edit sketch of vbase handling This is roughly what I had in mind, though it's algorithmically poor because it walk

[Bug c++/104107] [9/10/11/12 Regression] parsing crashes on class template instantiation since r9-6853-g17838af989014f5e

2022-02-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104107 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-02-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #22 from Jason Merrill --- (In reply to Jakub Jelinek from comment #21) > This patch implements the rejection of pointers to non-trivially-copyable > types with the exception of &var or &parm, because in those cases we know it > is c

[Bug c++/95036] [9/10/11 Regression] ICE with variadic template template parameters

2022-02-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95036 Jason Merrill changed: What|Removed |Added Known to work||12.0 Summary|[9/10/11/12 Regr

[Bug c++/104107] [9/10/11 Regression] parsing crashes on class template instantiation since r9-6853-g17838af989014f5e

2022-02-15 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104107 Jason Merrill changed: What|Removed |Added Known to work||12.0 Summary|[9/10/11/12 Reg

[Bug c++/104539] Failed to inline a very simple template function when it's explicit instantiated.

2022-02-16 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104539 --- Comment #3 from Jason Merrill --- (In reply to Richard Biener from comment #2) > the explicit instantiation lacks COMDAT (but has comdat_group) and it > has forced_by_abi. > > I'm not sure the C++ standard calls out any semantic difference

[Bug c++/94960] extern template prevents inlining of standard library objects

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94960 --- Comment #7 from Jason Merrill --- C++17 and below said, Except for inline functions and variables, declarations with types deduced from their initializer or return value (10.1.7.4), const variables of literal types, variables of reference t

[Bug c++/104539] Failed to inline a very simple template function when it's explicit instantiated.

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104539 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/104539] Failed to inline a very simple template function when it's explicit instantiated.

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104539 Jason Merrill changed: What|Removed |Added Known to fail|12.0| Known to work|

[Bug c++/90451] [9/10/11/12 Regression] "static" function which added "deprecated" print deprecated warning >1 times (twice or even 3 times)

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90451 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/104476] [10/11/12 Regression] using-decl shadowed by member function when in incomplete-class context

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

[Bug c++/104476] [11/12 Regression] using-decl shadowed by member function when in incomplete-class context

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104476 Jason Merrill changed: What|Removed |Added Target Milestone|10.4|11.3 Summary|[10/11/12 Regre

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #18

[Bug c++/70796] [DR 1030] Initialization order with braced-init-lists still broken

2021-11-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70796 Jason Merrill changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/103310] null comparison with a weak symbol eliminated

2021-11-18 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103310 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

2021-11-18 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 --- Comment #3 from Jason Merrill --- (In reply to Marek Polacek from comment #2) > class C { > template struct _List; > > template struct S; // #1 > > template > struct S<_Sz, _List<_Uint, _UInts...>>; // #2 > > static constexpr

[Bug c++/103478] More explanation for error on constexpr function parameter used in a constant expression

2021-11-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103478 Jason Merrill changed: What|Removed |Added Severity|normal |enhancement Summary|Possible

[Bug c++/103319] [coroutines] ICE in is_this_parameter, at cp/semantics.c:10672

2021-12-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103319 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org Resolu

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

2021-12-03 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 --- Comment #7 from Jason Merrill --- (In reply to Andrew Pinski from comment #6) > Note I think this paper applies to C++20 too or at least part of it. > > From CWG1291: > [Accepted at the November, 2020 meeting as part of paper P1787R6 and mov

[Bug c++/21678] Using inline disables warnings about missing return statements

2021-12-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21678 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #10

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 Jason Merrill changed: What|Removed |Added Priority|P3 |P1 CC|

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 --- Comment #6 from Jason Merrill --- Created attachment 51970 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51970&action=edit libstdc++ fix

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 --- Comment #7 from Jason Merrill --- So it seems that this warning did find a real issue with the library, but one that was hard to connect to the actual wording of the message (and didn't affect the original testcase). In particular, "specifi

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

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org See

[Bug tree-optimization/102958] std::u8string suboptimal compared to std::string, triggers warnings

2021-12-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102958 --- Comment #5 from Jason Merrill --- Let's focus on the missed-optimization issues in this PR, and address the broader diagnostic issues in PR 103483.

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

2021-12-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483 --- Comment #14 from Jason Merrill --- (In reply to Martin Sebor from comment #13) > static inline void copy (const char *p) > { > int N = null_safe_strlen (p); > if (N) /* disabling this branch prevents the warning */ > __builtin_memcpy

[Bug tree-optimization/93971] std::string considered to alias declared objects of incompatible types

2021-12-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93971 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 103534, which changed state. Bug 103534 Summary: [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 What|Removed

[Bug tree-optimization/103332] [12 Regression] Spurious -Wstringop-overflow on string concatenation in libstdc++ tests

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103332 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/103534] [12 regression] Spurious -Wstringop-overflow warning with std::string concatencation

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103534 Jason Merrill changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #12

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 103332, which changed state. Bug 103332 Summary: [12 Regression] Spurious -Wstringop-overflow on string concatenation in libstdc++ tests https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103332 What|Removed

[Bug c++/103681] [9/10/11/12 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/103681] [9/10/11/12 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2021-12-13 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 --- Comment #2 from Jason Merrill --- compile-time testcase struct A { long l; char c = -1; }; struct B : public A { char d; }; #define SA(X) static_assert(X,#X) SA(sizeof (B) == sizeof (A) || alignof (long) < 2*sizeof(char));

[Bug c++/103681] [9/10/11/12 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2021-12-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 Jason Merrill changed: What|Removed |Added Priority|P1 |P2

[Bug c++/103758] bogus warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag]

2021-12-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103758 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/103681] [9/10/11 Regression] Unusual behavior for tail padding with different c++ standards and NSDMI

2021-12-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103681 Jason Merrill changed: What|Removed |Added Summary|[9/10/11/12 Regression] |[9/10/11 Regression]

[Bug c++/92193] Poor diagnostics when a constexpr function call follows a failed static_assert

2021-08-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92193 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/101460] Useless cascade of overload resolution errors for invalid expression

2021-08-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101460 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug c++/101460] Useless cascade of overload resolution errors for invalid expression

2021-08-30 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101460 Jason Merrill changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

[Bug c++/92193] Poor diagnostics when a constexpr function call follows a failed static_assert

2021-08-31 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92193 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

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

2021-08-31 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 92193, which changed state. Bug 92193 Summary: Poor diagnostics when a constexpr function call follows a failed static_assert https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92193 What|Removed

[Bug c++/55722] failed static_assert won't trigger a second time

2021-08-31 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55722 Jason Merrill changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-08-31 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #5

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #6 from Jason Merrill --- Created attachment 51402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51402&action=edit patch to silence constexpr issues with erroneous functions Here are a couple of other commits I tried to reduce

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #7 from Jason Merrill --- Created attachment 51403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51403&action=edit patch to stop compiling a function after static_assert

[Bug c++/102229] [11/12 Regression] 'decltype(auto)' cannot be cv-qualified

2021-09-07 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102229 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #5

[Bug c++/102229] [11/12 Regression] 'decltype(auto)' cannot be cv-qualified

2021-09-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102229 --- Comment #8 from Jason Merrill --- (In reply to Marek Polacek from comment #6) > Thanks. With the latter interpretation in mind, it seems my earlier fix > should be mitigated so that we allow > > constexpr decltype(auto) > but not > conste

[Bug ipa/62051] [9/10/11/12 Regression] Undefined reference to vtable with -O2 and -fdevirtualize-speculatively

2021-09-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62051 --- Comment #27 from Jason Merrill --- (In reply to Andrew Pinski from comment #26) > That is Base and Derived in the shared library and the main program are > considered two different classes because of -fvisibility=hidden and the > classes are

[Bug c++/96184] [11/12 Regression] GCC treats "use of local variable with automatic storage from containing function" differently in versions

2021-09-10 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184 Jason Merrill changed: What|Removed |Added Priority|P3 |P2 Target Milestone|9.5

[Bug c++/96184] [11/12 Regression] GCC treats "use of local variable with automatic storage from containing function" differently in versions

2021-09-12 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184 --- Comment #5 from Jason Merrill --- Created attachment 51446 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51446&action=edit fix that causes regressions This patch fixes this testcase, but regresses the testcases from PR91506 and PR4178

[Bug c++/96184] [11/12 Regression] GCC treats "use of local variable with automatic storage from containing function" differently in versions

2021-09-12 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184 Jason Merrill changed: What|Removed |Added Assignee|jason at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug c++/48396] std::type_info is implicitly declared

2021-09-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48396 --- Comment #4 from Jason Merrill --- Created attachment 51462 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51462&action=edit patch to allow redeclaration in module This isn't a proper fix, but may let you make progress with modularizati

[Bug c++/48396] std::type_info is implicitly declared

2021-09-14 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48396 Jason Merrill changed: What|Removed |Added Target Milestone|--- |12.0 Status|NEW

[Bug c++/102283] Inconsistent/wrong overload resolution when using an initializer list and a defaulted template parameter

2021-09-16 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102283 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #4

[Bug c++/102530] New: Warn about non-extended temporary passed to a function returning a reference in temp-extending context

2021-09-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102530 Bug ID: 102530 Summary: Warn about non-extended temporary passed to a function returning a reference in temp-extending context Product: gcc Version: 12.0 Status: UNCONFI

[Bug c++/102530] Warn about non-extended temporary passed to a function returning a reference in temp-extending context

2021-09-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102530 --- Comment #1 from Jason Merrill --- https://wg21.link/cwg900 and https://wg21.link/ewg120 deal with temporary lifetime issues with range-for. But they involve reference-like classes rather than C++ reference types; I suppose the warning also

[Bug c++/102530] Warn about non-extended temporary passed to a function returning a reference in temp-extending context

2021-09-29 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102530 --- Comment #3 from Jason Merrill --- A simpler alternative would be to warn about any non-extended temporaries in an initializer. This would have both more false positives and fewer false negatives. If the temporary is passed by value or rval

[Bug tree-optimization/102560] New: [12 Regression] g++.dg/Walloca1.C ICE with aggressive GC

2021-10-01 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102560 Bug ID: 102560 Summary: [12 Regression] g++.dg/Walloca1.C ICE with aggressive GC Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: GC, ice-on-valid-code

[Bug c++/102876] GCC fails to use constant initialization even when it knows the value to initialize

2021-10-21 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876 --- Comment #6 from Jason Merrill --- It's not clear to me that this optimization should use the constexpr machinery; as I commented on bug 4131. If optimization turns the initialization of a static variable into a simple matter of storing a co

[Bug c++/102876] GCC fails to use constant initialization even when it knows the value to initialize

2021-10-21 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876 --- Comment #7 from Jason Merrill --- But yes, the implicit constexpr patch I've been working on would likely improve this as well.

<    2   3   4   5   6   7   8   9   10   11   >