[Bug c++/93676] [8 Regression] crash in build_value_init

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93676 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/90799] noexcept specification dependent on template argument throws internal compiler error when trying to deduce it from a function argument

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90799 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/92031] [9 Regression] Incorrect "taking address of r-value" error

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

[Bug c++/91678] [9 Regression] decltype returns wrong type under certain conditions

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

[Bug c++/98538] [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98538 --- Comment #2 from Marek Polacek --- Valid test: template using CArray = U[]; template > struct X { };

[Bug c/65455] typeof _Atomic fails

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

[Bug c/64918] invalid (?) warning when initializing structure

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

[Bug c/63944] [DR413] Partial overriding of nonconstant struct/union initializers with designated initializers

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

[Bug c++/97427] constexpr destructor for const object incorrectly rejected as modifying const object

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97427 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98547] GCC spends many minutes instead of seconds building a file with array initialization

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98547 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/82099] internal compiler error: in type_throw_all_p, at cp/except.c:1186 when using a function pointer for templated predicate

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82099 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/97975] [8/9 Regression] ICE unexpected expression '(int)A< >::b' of kind implicit_conv_expr

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97975 Marek Polacek changed: What|Removed |Added Summary|[8/9/10 Regression] ICE |[8/9 Regression] ICE

[Bug c++/96742] [10 Regression] "warning: comparison of unsigned expression in ‘< 0’ is always false" with dependent values

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

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

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

[Bug c++/98551] [10/11 Regression] ICE in replace_result_decl, at cp/constexpr.c:2150

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98551 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Priority|P3

[Bug c++/98545] [11 Regression] ICE in write_expression, at cp/mangle.c:3352

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

[Bug c++/98103] [10 Regression] ICE tree check: expected tree that contains 'decl minimal' structure, have 'integer_cst' in cxx_eval_dynamic_cast_fn, at cp/constexpr.c:2003

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98103 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98043] [8/9 Regression] ICE ‘verify_gimple’ failed since r5-3726-g083e891e69429f93b958f6c18e2d52f515bae572

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98043 Marek Polacek changed: What|Removed |Added Summary|[8/9/10 Regression] ICE |[8/9 Regression] ICE

[Bug c++/98441] [11 Regression] member function pointer incorrectly parsed as having trailing return type

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98441 --- Comment #8 from Marek Polacek --- Looks like a simple thinko: --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12241,9 +12241,11 @@ grokdeclarator (const cp_declarator *declarator, tree late_return_type =

[Bug testsuite/98566] g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11

2021-01-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566 --- Comment #4 from Marek Polacek --- C++ tests aren't run in C++11 mode unless specified by GXX_TESTSUITE_STDS (to alleviate testing times).

[Bug testsuite/98566] New: g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11

2021-01-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566 Bug ID: 98566 Summary: g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/98570] [8/9/10/11 Regression] ICE: canonical types differ for identical types

2021-01-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98570 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug testsuite/98566] g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11

2021-01-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/98566] g++.dg/warn/Wmismatched-dealloc.C fails with -std=c++11

2021-01-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98566 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-01-06

[Bug c++/98600] Pointer-to-member deduced type not accepted as template parameter

2021-01-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98600 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug objc++/98606] [10 regression] obj-c++.dg/template-4.mm fails erratically

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

[Bug c++/96623] [11 Regression] ICE in inject_parm_decls, at cp/parser.c:23893

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

[Bug c++/98538] [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335

2021-01-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98538 --- Comment #8 from Marek Polacek --- (In reply to Nathan Sidwell from comment #5) > I don;t think your patch is quite right. the call afterwards is making the > assumption that DEPENDENT_TYPE_P is only ever set when > DEPENDENT_TYPE_P_VALID is

[Bug c++/98675] Accessing member of temporary outside its lifetime allowed in constexpr function

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98675 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug objc++/98606] [10 regression] obj-c++.dg/template-4.mm fails erratically

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98606 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 --- Comment #7 from Marek Polacek --- Or, disable it when we call build_base_path with nonnull == 1?

[Bug c++/86769] g++ destroys condition variable in for statement too early

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

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 --- Comment #6 from Marek Polacek --- (In reply to Martin Sebor from comment #1) > Confirmed. It must be an instance we missed in the fix for pr96003 where > the C++ front end adds a COND_EXPR to static_cast. > > The larger context in the

[Bug c++/98687] [11 Regression] ICE tree check: expected tree that contains ‘decl minimal’ structure, have ‘overload’ in diagnose_name_conflict, at cp/name-lookup.c:2729 since r11-6652-g796ead19f85372

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

[Bug c++/96623] [11 Regression] ICE in inject_parm_decls, at cp/parser.c:23893

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

[Bug sanitizer/98828] New: liblsan.so: undefined reference to __lsan::GetThreadRangesLocked

2021-01-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98828 Bug ID: 98828 Summary: liblsan.so: undefined reference to __lsan::GetThreadRangesLocked Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/98803] [10/11 Regression] [C++20] ICE on invalid code with checked build [in synthesize_implicit_template_parm, at cp/parser.c:45335]

2021-01-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98803 Marek Polacek changed: What|Removed |Added Summary|[C++20] ICE on invalid code |[10/11 Regression] [C++20]

[Bug c++/98800] [8/9/10/11 Regression] ICE on invalid use of non-static member function in trailing return type since r8-2724

2021-01-25 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98800 Marek Polacek changed: What|Removed |Added Last reconfirmed||2021-01-25

[Bug c++/97966] [10 Regression] maybe_instantiate_noexcept

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97966 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] |[10 Regression]

[Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/98463] [11 Regression] internal compiler error: in output_constructor_regular_field, at varasm.c:5491 by r11-2720

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98463 Marek Polacek changed: What|Removed |Added CC||gcc-bugs at marehr dot dialup.fu-b

[Bug c++/98659] [11 Regression] ICE tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in maybe_instantiate_noexcept, at cp/pt.c:25445 since r11-6476-gaf362af18f405c34

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98659 --- Comment #5 from Marek Polacek --- (In reply to Matthias Klose from comment #4) > I got reports for this issue for the gcc-10 branch as well. Please could you > consider a backport? That must be a different problem, perhaps 98333.

[Bug c++/98756] Suspicious "(*this)." in mangled symbol

2021-01-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98756 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault)

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

[Bug c++/98570] [8/9/10/11 Regression] ICE: canonical types differ for identical types

2021-01-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98570 --- Comment #3 from Marek Polacek --- Maybe it was r226992 and our bisect binaries are broken :/.

[Bug other/98790] [10/11 Regression] ICE in append_to_statement_list_1 (Segmentation Fault)

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

[Bug c++/98545] [11 Regression] ICE in write_expression, at cp/mangle.c:3352

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

[Bug c++/96623] [11 Regression] ICE in inject_parm_decls, at cp/parser.c:23893

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96623 --- Comment #4 from Marek Polacek --- And an extended test to check that various variables are in scope: constexpr int x = 0; struct A { int a1; void foo (int p) { int foovar; struct B { int b1; void bar1 () noexcept(x);

[Bug c++/97742] [10/11 Regression] endless loop with code reduced by creduce/cvise

2021-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97742 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

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

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/98756] New: Suspicious "(*this)." in mangled symbol

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98756 Bug ID: 98756 Summary: Suspicious "(*this)." in mangled symbol Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/98659] [11 Regression] ICE tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in maybe_instantiate_noexcept, at cp/pt.c:25445 since r11-6476-gaf362af18f405c34

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

[Bug c++/94751] [9/10/11 Regression] ICE on invalid code in maybe_instantiate_noexcept

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94751 --- Comment #5 from Marek Polacek --- Actually Comment 3 test is unrelated to the original issue here. Comment 3 will be fixed by my PR98659 fix, but not the original issue.

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

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752 --- Comment #3 from Marek Polacek --- (In reply to Jakub Jelinek from comment #2) > But if we can fix it, I'd think it would be worth an exception. Given the fix would likely only affect C++20 code, I think that would be reasonable.

[Bug c++/94751] [9/10/11 Regression] ICE on invalid code in maybe_instantiate_noexcept

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94751 --- Comment #4 from Marek Polacek --- I posted a patch for this which fixes this test too.

[Bug c++/98333] [10 Regression] ICE in check_qualified_type, at tree.c:6593 since r10-1280-g78f7607db4c53f8c

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98333 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] ICE in |[10 Regression] ICE in

[Bug c++/98687] [11 Regression] ICE tree check: expected tree that contains ‘decl minimal’ structure, have ‘overload’ in diagnose_name_conflict, at cp/name-lookup.c:2729 since r11-6652-g796ead19f85372

2021-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98687 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/86769] g++ destroys condition variable in for statement too early

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86769 --- Comment #5 from Marek Polacek --- Further poking revealed that the patch above mishandles // PR c++/86769 // { dg-do run } #define assert(X) do { if (!(X)) __builtin_abort(); } while(0) int g; struct X { X() { g++; } ~X() { g--; }

[Bug c++/98687] [11 Regression] ICE tree check: expected tree that contains ‘decl minimal’ structure, have ‘overload’ in diagnose_name_conflict, at cp/name-lookup.c:2729 since r11-6652-g796ead19f85372

2021-01-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98687 --- Comment #2 from Marek Polacek --- Adjusted test: extern "C" namespace std { double log1p(double); } namespace std_fallback { template void log1p(); } template struct log1p_impl { static int run() { using std::log1p; using

[Bug c++/98231] [11 Regression] bogus error: no match for ‘operator<<’

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

[Bug c++/98545] [11 Regression] ICE in write_expression, at cp/mangle.c:3352

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98545 --- Comment #2 from Marek Polacek --- Candidate fix: --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -3349,7 +3349,8 @@ write_expression (tree expr) else if (dependent_name (expr)) { tree name = dependent_name (expr); -

[Bug c++/98545] [11 Regression] ICE in write_expression, at cp/mangle.c:3352

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98545 --- Comment #3 from Marek Polacek --- (In reply to Marek Polacek from comment #2) > but I need to figure out how to test this. [[gnu::used]] to actually emit the function.

[Bug c++/98231] [11 Regression] bogus error: no match for ‘operator<<’

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

[Bug c++/98545] [11 Regression] ICE in write_expression, at cp/mangle.c:3352

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

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 --- Comment #3 from Marek Polacek --- Started with r11-1697.

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 --- Comment #4 from Marek Polacek --- The reduced testcase is unfortunately overreduced :(

[Bug c++/98646] [11 Regression] A static_cast confuses -Wnonnull, causing false positives

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 --- Comment #5 from Marek Polacek --- A better one: // PR c++/98646 // { dg-do compile } // { dg-options "-Wnonnull" } struct B { void foo(); }; struct D : B { void show(); }; void D::show() { constexpr void *p = nullptr; if (p)

[Bug c++/98538] [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335

2021-01-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98538 --- Comment #3 from Marek Polacek --- Extended test: template using A = int[1]; template> struct X { }; template void f (const A) { const A a; } template struct Y { const A a; };

[Bug c++/98538] [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335

2021-01-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98538 --- Comment #4 from Marek Polacek --- Oops, I hadn't noticed that this PR has an assignee, since it's still in NEW. Anyway, this was my patch: --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1341,7 +1341,9 @@ cp_build_qualified_type_real (tree

[Bug c++/98062] [11 regression] Crash in type_as_string from plugin

2021-01-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98062 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug c++/98659] [11 Regression] ICE tree check: expected tree that contains ‘decl common’ structure, have ‘error_mark’ in maybe_instantiate_noexcept, at cp/pt.c:25445 since r11-6476-gaf362af18f405c34

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

[Bug c++/98231] [11 Regression] bogus error: no match for ‘operator<<’

2021-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98231 --- Comment #1 from Marek Polacek --- This seems to work... --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -9279,4 +9279,14 @@ push_operator_bindings () } } +/* Wrapper around push_local_binding to push the bindings for + a

[Bug c++/98515] [11 Regression] Possible regression causing "is protected within this context" error

2021-01-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98515 Marek Polacek changed: What|Removed |Added Target Milestone|--- |11.0 Last reconfirmed|

[Bug c++/98642] [10/11 Regression] wrong "use of deleted function" error

2021-01-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98642 --- Comment #1 from Marek Polacek --- $ ./cc1plus -quiet 98642.C 98642.C: In instantiation of ‘C& bar() [with C = const foo]’: 98642.C:19:25: required from here 98642.C:13:12: error: use of deleted function ‘base::base(base&&)’ 13 |

[Bug c++/98642] [10/11 Regression] wrong "use of deleted function" error

2021-01-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98642 Marek Polacek changed: What|Removed |Added Summary|wrong "use of deleted |[10/11 Regression] wrong

[Bug c++/98639] GCC accepts cast from Base to Derived in C++20 mode

2021-01-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98639 Marek Polacek changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/98642] New: wrong "use of deleted function" error

2021-01-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98642 Bug ID: 98642 Summary: wrong "use of deleted function" error Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/63707] Brace initialization of array sometimes fails if no copy constructor

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

[Bug c++/97745] [10 Regression] ICE in tsubst_decl, at cp/pt.c:14666

2020-12-31 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97745 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c++/98441] [11 Regression] member function pointer incorrectly parsed as having trailing return type

2020-12-31 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98441 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Priority|P3

[Bug c++/90799] noexcept specification dependent on template argument throws internal compiler error when trying to deduce it from a function argument

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

[Bug c++/98861] I want deterministic exceptions (Herbception)

2021-01-29 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98861 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/98864] Warning for unnecessary final keyword

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98864 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/96137] [11 Regression] GCC hang on in invalid function definition

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96137 --- Comment #5 from Marek Polacek --- A more realistic test: void fn () { X.operator T(); }

[Bug c++/94775] [8/9/10 Regression] ICE in strip_typedefs, at cp/tree.c:1734 since r8-4668-g8a5ee94a082b3d48

2021-01-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94775 Marek Polacek changed: What|Removed |Added Summary|[8/9/10/11 Regression] ICE |[8/9/10 Regression] ICE in

[Bug c++/98899] [10/11 Regression] ICE in tsubst_copy, at cp/pt.c:16198 since r10-1280-g78f7607db4c53f8c

2021-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98899 Marek Polacek changed: What|Removed |Added Priority|P3 |P2 Assignee|unassigned at gcc

[Bug c++/98355] [9/10 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628

2021-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98355 Marek Polacek changed: What|Removed |Added Summary|[9/10/11 Regression] ICE in |[9/10 Regression] ICE in

[Bug c++/98355] [9 Regression] ICE in has_attribute, at c-family/c-attribs.c:5628

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

[Bug c++/98941] [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t

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

[Bug c++/98940] Implement C++23 language features

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940 Bug 98940 depends on bug 98941, which changed state. Bug 98941 Summary: [C++23] Implement P0330R2 - Literal Suffixes for ptrdiff_t and size_t https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98941 What|Removed

[Bug c++/98951] gcc/cp/call.c: 4 * member functions can be marked const

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

[Bug c++/98102] [9/10/11 Regression] ICE tree check: expected block, have function_decl in change_scope, at final.c:1480

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98102 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/97994] [8/9/10/11 Regression] ICE in nothrow_spec_p, at cp/except.c:1183 since r7-4383-g51dc660315ef83dc

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97994 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug c++/98947] [10/11 Regression] Incorrect warning when using a ternary operator to select one of two volatile variables to write to

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98947 Marek Polacek changed: What|Removed |Added Summary|Incorrect warning when |[10/11 Regression]

[Bug c++/96462] [10/11 Regression] ICE in tree check: expected identifier_node, have bit_not_expr in find_namespace_slot, at cp/name-lookup.c:97

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96462 --- Comment #4 from Marek Polacek --- Probably can be fixed with just --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -5702,6 +5702,13 @@ lookup_using_decl (tree scope, name_lookup ) if (TREE_CODE (scope) == NAMESPACE_DECL) {

[Bug c++/96462] [10/11 Regression] ICE in tree check: expected identifier_node, have bit_not_expr in find_namespace_slot, at cp/name-lookup.c:97

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

[Bug c++/96462] [10/11 Regression] ICE in tree check: expected identifier_node, have bit_not_expr in find_namespace_slot, at cp/name-lookup.c:97

2021-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96462 --- Comment #3 from Marek Polacek --- Started with r271467.

[Bug c++/80460] Incorrect fallthrough warning after [[noreturn]] function inside always-true conditional

2021-01-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80460 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|NEW CC|

[Bug c++/98859] pedantic error on use of __VA_OPT__ before C++20 is unnecessary and counterproductive

2021-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98859 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever

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