[Bug c++/107755] [10/11/12/13 Regression] ICE: in fold_convert_loc, at fold-const.c:2435, with -Wlogical-op, implicit user-defined conversion operator, template function, logical operator, and conditi

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

[Bug c++/107574] [10/11/12/13 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent since r9-50-gd760b06868d660bc

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

[Bug c++/107755] [10/11 Regression] ICE: in fold_convert_loc, at fold-const.c:2435, with -Wlogical-op, implicit user-defined conversion operator, template function, logical operator, and conditional o

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107755 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Summary|[10/11/12/1

[Bug c++/108559] [13 Regression] A new crash with using a simple class, inheritance and a function

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108559 --- Comment #6 from Marek Polacek --- *** Bug 108627 has been marked as a duplicate of this bug. ***

[Bug c++/108627] A new crash with using a simple class, inheritance and a function (version 2)

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108627 Marek Polacek changed: What|Removed |Added Resolution|--- |DUPLICATE CC|

[Bug c++/108165] -Wdangling-reference false positive

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #5 from Marek Polacek --- Sorry, I'm not sure if the false positive in comment 0 can be fixed. I can't simply compare the type of the temporary argument and the return type, because we may be returning a subobject of the temporary a

[Bug c++/108165] -Wdangling-reference false positive

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #7 from Marek Polacek --- Sure, I could (lookup_member?). It's still just guessing but maybe it would be worth it. Let me try...

[Bug c++/108165] -Wdangling-reference false positive

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #8 from Marek Polacek --- (For std::any et al I guess we also have to look for void*.)

[Bug c++/108165] -Wdangling-reference false positive

2023-02-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #9 from Marek Polacek --- But even that won't work for Wdangling-reference6.C where the argtype is int but the rettype is std::pair. Really, all I could do is to warn only when all the arguments to the function returning a reference

[Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9

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

[Bug c++/107574] [10/11/12/13 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent since r9-50-gd760b06868d660bc

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

[Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228

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

[Bug c++/108242] [10/11/12/13 Regression] '__FUNCTION__' was not declared when used inside a generic (templated) lambda declared inside a template function

2023-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108242 Marek Polacek changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/101071] [10/11/12/13 Regression] ICE in gimplify_init_constructor, at gimplify.c:5228

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

[Bug c++/108158] [11/12 Regression] modification of '...' is not a constant expression since r12-2304

2023-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 Marek Polacek changed: What|Removed |Added Summary|[11/12/13 Regression] |[11/12 Regression] |m

[Bug c++/107079] [10/11/12/13 Regression] ICE initializing lifetime-extended constexpr variable that stores its this pointer

2023-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107079 --- Comment #2 from Marek Polacek --- Very interesting. We're in store_init_value, initializing x with &TARGET_EXPR }> but we must lifetime-extend via extend_ref_init_temps and we get _ZGR1x_.x = (const struct X *) & >>>;, (const struct X &) &

[Bug c++/107079] [10/11/12/13 Regression] ICE initializing lifetime-extended constexpr variable that stores its this pointer

2023-02-03 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107079 --- Comment #3 from Marek Polacek --- The cxx_constant_init call actually takes decl=x so we should probably use that. value = cxx_constant_init (value, decl); However, in cxx_eval_outermost_constant_expr type is const struct X & and so we don'

[Bug c++/106656] [C++23] P2513 - char8_t Compatibility and Portability Fixes

2023-02-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106656 --- Comment #4 from Marek Polacek --- (In reply to Dimitrij Mijoski from comment #3) > The documentation for CLI flag -fchar8_t should be updated > https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html . Oh right, this is not an e

[Bug c++/107079] [10/11/12/13 Regression] ICE initializing lifetime-extended constexpr variable that stores its this pointer

2023-02-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107079 --- Comment #4 from Marek Polacek --- The ICE could be fixed with --- a/gcc/cp/call.cc +++ b/gcc/cp/call.cc @@ -13604,9 +13604,13 @@ set_up_extended_ref_temp (tree decl, tree expr, vec **cleanups, init = NULL_TREE; } else -/*

[Bug c++/107079] [10/11/12/13 Regression] ICE initializing lifetime-extended constexpr variable that stores its this pointer

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

[Bug c++/101073] [10/11/12/13 Regression] ICE in cxx_eval_constant_expression, at cp/constexpr.c:6941

2023-02-08 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101073 --- Comment #5 from Marek Polacek --- A similar test that doesn't use op=: struct Y { int a; }; struct X { Y b = Y{1}; Y c = this->b; }; constexpr X o = { }; static_assert(o.b.a == 1 && o.c.a == 1, "");

[Bug c++/101588] [DR2126] rejects valid constexpr when binding from a constexpr function and initializer_list

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

[Bug c++/101073] [10/11/12/13 Regression] ICE in cxx_eval_constant_expression, at cp/constexpr.c:6941

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

[Bug c++/108744] error message when trying to use structured bindings in static member declaration could be cleaner

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

[Bug c++/101099] [10/11/12/13 Regression] ICE in type_unification_real, at cp/pt.c:22173

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

[Bug c++/107079] [10/11/12 Regression] ICE initializing lifetime-extended constexpr variable that stores its this pointer

2023-02-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107079 Marek Polacek changed: What|Removed |Added Summary|[10/11/12/13 Regression]|[10/11/12 Regression] ICE

[Bug c++/101588] [DR2126] rejects valid constexpr when binding from a constexpr function and initializer_list

2023-02-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101588 --- Comment #4 from Marek Polacek --- When fixing this, please adjust g++.dg/cpp0x/constexpr-nsdmi2.C.

[Bug c/108753] '-Wduplicated-cond' doesn't diagnose duplicated subexpressions

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

[Bug c++/105593] avx512 math function raises uninitialized variable warning

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 --- Comment #23 from Marek Polacek --- I'm somewhat uneasy about backporting PR102633, to be honest. But I could try and test gcc 12 to see if it causes any problems, if you want me to.

[Bug c++/101099] [10/11/12/13 Regression] ICE in type_unification_real, at cp/pt.c:22173

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101099 --- Comment #7 from Marek Polacek --- (In reply to Martin Liška from comment #6) > Well, it's fixed since r13-3639-ga4cd2389276a30c3 which is a revision that > handles default options. Is it really fixed? Ah, that commit explains that this is n

[Bug c++/105593] avx512 math function raises uninitialized variable warning

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 --- Comment #25 from Marek Polacek --- Okay, let me test the backport then.

[Bug middle-end/102633] [11/12 Regression] warning for self-initialization despite -Wno-init-self

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102633 Marek Polacek changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 102633, which changed state. Bug 102633 Summary: [11/12 Regression] warning for self-initialization despite -Wno-init-self https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102633 What|Removed

[Bug c++/105593] avx512 math function raises uninitialized variable warning

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 --- Comment #27 from Marek Polacek --- Ah, I'm not even sure if it applies cleanly but if it does, go ahead.

[Bug c++/106675] [10/11/12/13 Regression] g++ crashes on funky operators

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

[Bug c++/91846] [10/11/12/13 Regression] ICE in use_thunk, at cp/method.c:316

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91846 Marek Polacek changed: What|Removed |Added CC||ramir.sultano at ya dot ru --- Comment #

[Bug c++/108755] ICE in use_thunk at cp/method.cc:317

2023-02-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108755 Marek Polacek changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/108759] "mandatory copy elision" not implemented during constant evaluation redux

2023-02-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108759 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-02-13 Status|UNCONFIRM

[Bug c++/107938] [11/12/13 Regression] ICE directly returning `this` of `extern` variable in template since r11-557

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

[Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1

2023-02-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 --- Comment #10 from Marek Polacek --- Sorry. A patch is on review.

[Bug c++/108795] [10/11/12/13 Regression] ICE in prep_operand, at cp/call.cc:6325

2023-02-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108795 Marek Polacek changed: What|Removed |Added Target Milestone|--- |10.5 Status|UNCONFIRMED

[Bug middle-end/106080] Labels as values triggering -Wdangling-pointer

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

[Bug middle-end/106080] Labels as values triggering -Wdangling-pointer

2023-02-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106080 --- Comment #7 from Marek Polacek --- I know you can't jump into a statement expression but that's not what's happening here. The kernel uses this trick to get the current address for error messages: #define __this_address ({ __label__ __here;

[Bug middle-end/106080] Labels as values triggering -Wdangling-pointer

2023-02-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106080 --- Comment #10 from Marek Polacek --- (In reply to Andrew Pinski from comment #8) > (In reply to Marek Polacek from comment #7) > > I know you can't jump into a statement expression but that's not what's > > happening here. The kernel uses thi

[Bug c++/106675] [10 Regression] g++ crashes on funky operators

2023-02-14 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106675 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Summary|[10/11/12/13 R

[Bug middle-end/104077] [meta-bug] bogus/missing -Wdangling-pointer

2023-02-15 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104077 Bug 104077 depends on bug 106080, which changed state. Bug 106080 Summary: Labels as values triggering -Wdangling-pointer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106080 What|Removed |Added

[Bug middle-end/106080] Labels as values triggering -Wdangling-pointer

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

[Bug c++/108829] internal compiler error: in is_capture_proxy, at cp/lambda.cc:272

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

[Bug c++/108829] [12/13 Regression] internal compiler error: in is_capture_proxy, at cp/lambda.cc:272

2023-02-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108829 Marek Polacek changed: What|Removed |Added Keywords|needs-bisection | Priority|P3

[Bug c++/108833] [12 Regression] internal compiler error: Segmentation fault (GCC 12.1.1)

2023-02-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108833 Marek Polacek changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/108829] [12 Regression] internal compiler error: in is_capture_proxy, at cp/lambda.cc:272

2023-02-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108829 Marek Polacek changed: What|Removed |Added Summary|[12/13 Regression] internal |[12 Regression] internal

[Bug c++/108829] [12 Regression] internal compiler error: in is_capture_proxy, at cp/lambda.cc:272

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

[Bug c++/101073] [10/11/12/13 Regression] ICE in cxx_eval_constant_expression, at cp/constexpr.c:6941

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

[Bug c++/108550] [10/11/12/13 Regression] the type 'const auto' of 'constexpr' variable is not literal

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

[Bug c++/108550] [10/11/12/13 Regression] the type 'const auto' of 'constexpr' variable is not literal

2023-02-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550 --- Comment #6 from Marek Polacek --- Ah! Started with commit dc062b4986328bfeec3ebd744a9c116e28828bf0 Author: Jason Merrill Date: Wed Aug 5 13:56:14 2015 -0400 re PR c++/66260 ([C++14] Failure to compile variable template with recursi

[Bug c++/108550] [10/11/12/13 Regression] the type 'const auto' of 'constexpr' variable is not literal

2023-02-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550 --- Comment #7 from Marek Polacek --- We get the bogus error because we failed to deduce the auto in constexpr auto is_pointer_v = is_pointer::value; to bool. We call do_auto_deduction and type_unification_real correctly deduces targs to , but

[Bug c++/108550] [10/11/12/13 Regression] the type 'const auto' of 'constexpr' variable is not literal

2023-02-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550 --- Comment #8 from Marek Polacek --- Potential fix: --- a/gcc/cp/pt.cc +++ b/gcc/cp/pt.cc @@ -10355,6 +10355,7 @@ lookup_and_finish_template_variable (tree templ, tree targs, if (TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (templ)) == 1 &&

[Bug c++/108887] [13 Regression] ICE in process_function_and_variable_attributes since r13-3601

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108887 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-02-22 Status|UNCONFIRM

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

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

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #6 from Marek Polacek --- FWIW, -fsanitize=signed-integer-overflow,shift seems to be enough to trigger the runaway compilation.

[Bug middle-end/102633] [11 Regression] warning for self-initialization despite -Wno-init-self

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102633 Marek Polacek changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 102633, which changed state. Bug 102633 Summary: [11 Regression] warning for self-initialization despite -Wno-init-self https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102633 What|Removed

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #7 from Marek Polacek --- The C90/C99 difference is due to ubsan_instrument_shift: 193 /* For signed x << y, in C99 and later, the following: 194 (unsigned) x >> (uprecm1 - y) 195 if non-zero, is undefined. */ 196 els

[Bug c++/108888] [13 Regression] error: definition in block 26 follows the use

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code Summary|er

[Bug tree-optimization/108888] [13 Regression] error: definition in block 26 follows the use

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

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #8 from Marek Polacek --- We generate HUGE trees for the div sanitization, but I notice that c_genericize_control_r doesn't use pset, like cp_genericize_r does. So I think the fix would be to add a hash_set to c_genericize_control_r

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

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

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #10 from Marek Polacek --- Another simple patch is --- a/gcc/c-family/c-gimplify.cc +++ b/gcc/c-family/c-gimplify.cc @@ -516,7 +516,7 @@ c_genericize_control_stmt (tree *stmt_p, int *walk_subtrees, void *data, tree t = tsi

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #12 from Marek Polacek --- Sure, it worked for the testcase because the STATEMENT_LIST only had two stmts. I'm testing: --- a/gcc/c-family/c-gimplify.cc +++ b/gcc/c-family/c-gimplify.cc @@ -516,7 +516,8 @@ c_genericize_control_stmt

[Bug c/108880] [11/12/13 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 --- Comment #14 from Marek Polacek --- (In reply to Jakub Jelinek from comment #13) > (In reply to Marek Polacek from comment #12) > > Sure, it worked for the testcase because the STATEMENT_LIST only had two > > stmts. I'm testing: > > > > ---

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ever co

[Bug c/108880] [11/12 Regression] slow compilation with "-fsanitize=undefined"

2023-02-22 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108880 Marek Polacek changed: What|Removed |Added Summary|[11/12/13 Regression] slow |[11/12 Regression] slow

[Bug sanitizer/108894] -fsanitize=bounds missing bounds provided by __builtin_dynamic_object_size()

2023-02-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108894 --- Comment #6 from Marek Polacek --- Ah, I thought we wanted to use __bdos for -fsanitize=object-size but that has been done already: commit 28896b38fabce818e59266b0063a46b3bc1b700f Author: Siddhesh Poyarekar Date: Tue May 10 12:51:42 2022

[Bug c++/107938] [11/12/13 Regression] ICE directly returning `this` of `extern` variable in template since r11-557

2023-02-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107938 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #4 from Marek Polacek

[Bug c++/108936] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.cc:4525

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

[Bug c++/108960] New: clear tf_partial in instantiate_template

2023-02-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108960 Bug ID: 108960 Summary: clear tf_partial in instantiate_template Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/108960] clear tf_partial in instantiate_template

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

[Bug c++/108165] -Wdangling-reference false positive

2023-02-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #11 from Marek Polacek --- No, because as Comment 9 says, there's no good way to suppress the warning. I'm currently leaning towards closing the BZ and suggesting adding a #pragma to disable the warning.

[Bug c++/108550] [10/11/12 Regression] the type 'const auto' of 'constexpr' variable is not literal

2023-02-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550 Marek Polacek changed: What|Removed |Added Summary|[10/11/12/13 Regression]|[10/11/12 Regression] the

[Bug c++/106259] [10/11/12/13 Regression] ICE in diag_mismatched_tags, at cp/parser.cc:33896

2023-02-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106259 --- Comment #3 from Marek Polacek --- // PR c++/106259 // { dg-do compile { target c++11 } } template struct A { template struct W { }; }; template<> struct A { template class W { }; }; void g () { struct A::W w1; // warn struct A

[Bug c++/106259] [10/11/12/13 Regression] ICE in diag_mismatched_tags, at cp/parser.cc:33896

2023-03-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106259 --- Comment #4 from Marek Polacek --- I know, in principle, how to fix it, but currently I'm struggling with getting struct A::W from struct A::W That we haven't found struct A::W in class2loc is actually OK, we don't have a A specialization, s

[Bug c++/106259] [10/11/12/13 Regression] ICE in diag_mismatched_tags, at cp/parser.cc:33896

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

[Bug c++/107574] [10/11/12 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent since r9-50-gd760b06868d660bc

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

[Bug c++/106259] [10/11/12 Regression] ICE in diag_mismatched_tags, at cp/parser.cc:33896

2023-03-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106259 Marek Polacek changed: What|Removed |Added Summary|[10/11/12/13 Regression]|[10/11/12 Regression] ICE

[Bug c++/108542] [13 Regression] ICE in instantiate_type, at cp/class.cc:8833

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

[Bug c++/108165] -Wdangling-reference false positive

2023-03-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108165 --- Comment #13 from Marek Polacek --- I would really not like to do that, the false positives rate is pretty low.

[Bug c++/107939] [11/12/13 Regression] Rejects use of `extern const` variable in a template since r11-557

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

[Bug c++/107939] [11/12/13 Regression] Rejects use of `extern const` variable in a template since r11-557

2023-03-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107939 --- Comment #5 from Marek Polacek --- I think p_c_e just needs to handle constexpr functors in templates. I'll poke more tomorrow.

[Bug c++/108998] [13 Regression] ICE in tsubst, at cp/pt.cc:16037

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

[Bug c++/107939] [11/12/13 Regression] Rejects use of `extern const` variable in a template since r11-557

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

[Bug c++/108975] [10/11/12/13 Regression] ICE on constexpr variable used as nontype template since r9-5473-ge32fc4499f863f

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

[Bug c++/107574] [10/11 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent since r9-50-gd760b06868d660bc

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

[Bug c++/106259] [10/11 Regression] ICE in diag_mismatched_tags, at cp/parser.cc:33896

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

[Bug c++/108550] [10/11/12 Regression] the type 'const auto' of 'constexpr' variable is not literal

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

[Bug c++/107938] [11/12 Regression] ICE directly returning `this` of `extern` variable in template since r11-557

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

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

2023-03-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 107938, which changed state. Bug 107938 Summary: [11/12 Regression] ICE directly returning `this` of `extern` variable in template since r11-557 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107938 What|Rem

[Bug c++/108550] [10/11/12 Regression] the type 'const auto' of 'constexpr' variable is not literal

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

[Bug c++/109030] [13 Regression] checking ICE in cxx_eval_call_expression with aggregate initialization inside noexcept

2023-03-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109030 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-03-06 Ever confirmed|0

[Bug c++/109042] [13 Regression] ICE in emit_support_tinfo_1, at cp/rtti.cc:1584

2023-03-06 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109042 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-03-06 Target Milestone|---

[Bug c/108060] [10/11/12/13 Regression] UBsan missed an out-of-bound bug at -O0 since r7-1900-g8a1b7b7fd75a3847

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

<    4   5   6   7   8   9   10   11   12   13   >