[Bug c++/119859] [15 Regression?] template member function overload with base class

2025-04-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
, ||ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka --- This was changed by r15-3740 which corrected our CWG 2273 implementation to apply the inherited-ness tiebreaker only to constructors rather than to all member functions, and as you point out the

[Bug c++/99546] lambda in requires-expression outside template is broken

2025-04-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99546 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119814] requires-clauses think void can be passed to ...

2025-04-15 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119814 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119807] [14 Regression] constexpr counter thing causes checking ICE: in instantiate_decl, at cp/pt.cc:27844 since r15-2120

2025-04-15 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119807 Patrick Palka changed: What|Removed |Added Known to work||15.0 Summary|[14/15 Regressi

[Bug c++/119807] [14/15 Regression] constexpr counter thing causes checking ICE: in instantiate_decl, at cp/pt.cc:27844

2025-04-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119807 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

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

2025-04-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 115639, which changed state. Bug 115639 Summary: Large variations in compilation times involving static_assert https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639 What|Removed |Added --

[Bug c++/115639] Large variations in compilation times involving static_assert

2025-04-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
|RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org --- Comment #9 from Patrick Palka --- Fixed for GCC 15, thanks for the report.

[Bug c++/115639] Large variations in compilation times involving static_assert

2025-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639 --- Comment #7 from Patrick Palka --- (In reply to Jason Merrill from comment #6) > (In reply to Patrick Palka from comment #5) > > ... and in particular if we have a cached mce_unknown call result it means > > the call isn't sensitive to mce, a

[Bug c++/115639] Large variations in compilation times involving static_assert

2025-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639 --- Comment #5 from Patrick Palka --- (In reply to Patrick Palka from comment #4) > (In reply to Jason Merrill from comment #3) > > (In reply to Marek Polacek from comment #2) > > > The second time around, we're not finding the call in > > > co

[Bug c++/115639] Large variations in compilation times involving static_assert

2025-04-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119687] [14/15 Regression] ICE when building kwin-6.3.4 against qt-6.9 (in operator*, at cp/cp-tree.h:876) (deduction guides related) since r14-10655

2025-04-10 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119687 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/119574] [14/15 regression] ICE on lambda in default template argument since r15-3530

2025-04-09 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119574 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/119687] [14/15 Regression] ICE when building kwin-6.3.4 against qt-6.9 (in operator*, at cp/cp-tree.h:876) (deduction guides related) since r14-10655

2025-04-09 Thread ppalka at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |ppalka at gcc dot gnu.org --- Comment #14 from Patrick Palka --- Fortunately a trivial fix --- alias_ctad_tweaks needs to use lkp_iterator instead of ovl_iterator.

[Bug c++/118698] [14/15 Regression] Compiler ICE on concept code accepted by MSVC and clang

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118698 --- Comment #18 from Patrick Palka --- I think I see what you mean -- for the instantiate_template (and possibly even coerce_template_parms) call site, we could define and pass a new flag tf_no_level_lowering instead of tf_partial to tell tsubst

[Bug c++/118698] [14/15 Regression] Compiler ICE on concept code accepted by MSVC and clang

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118698 --- Comment #17 from Patrick Palka --- (In reply to Jason Merrill from comment #15) > (In reply to Patrick Palka from comment #12) > > Substituting into seems like a partial > > substitution to me. If the lambda itself had any template parame

[Bug c++/119668] C++20 Nested concepts with NTTP triggers ICE

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
||ppalka at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #4 from Patrick Palka --- This was fixed by r14-8291, indeed it's basically a dup of PR112632. Thanks for the report! *** This bug has been marked as a duplicate of bug 112632 ***

[Bug c++/112632] [14 Regression] Non-type template parameter created with converting constructor sometimes has original type

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112632 Patrick Palka changed: What|Removed |Added CC||nlebedenko at hotmail dot com --- Comme

[Bug c++/118698] [14/15 Regression] Compiler ICE on concept code accepted by MSVC and clang

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118698 --- Comment #14 from Patrick Palka --- The GCC 13 gimple for the reduced testcase is: ;; Function void __static_initialization_and_destruction_0() (null) ;; enabled by -tree-original <>>) >; <<< Unknown tree: expr_stmt <<< Unknown tree:

[Bug c++/118698] [14/15 Regression] Compiler ICE on concept code accepted by MSVC and clang

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118698 --- Comment #12 from Patrick Palka --- (In reply to Jason Merrill from comment #11) > (In reply to Patrick Palka from comment #8) > > Started with r14-9938, though I bet before this commit it only accidentally > > worked. > > This failure does

[Bug c++/118698] [14/15 Regression] Compiler ICE on concept code accepted by MSVC and clang

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118698 --- Comment #13 from Patrick Palka --- If we strengthen the comment #6 testcase with @@ -6,4 +6,4 @@ concept tt = ; template typename U> concept is_specialization_of = tt; template concept is_foo = is_specialization_of; -auto ttt = is

[Bug c++/119574] [14/15 regression] ICE on lambda in default template argument since r15-3530

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/119574] [14/15 regression] ICE on lambda in default template argument since r15-3530

2025-04-08 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119574 --- Comment #9 from Patrick Palka --- IMHO this shouldn't be considered a P1 as the testcase is quite contrived, there's an easy workaround, and it (like other lambda in template argument situations) likely only accidentally worked before. On t

[Bug libstdc++/119501] std::ranges::copy_n advances InputIterator one more time than necessary

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119501 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/117849] constraint variable in requires expression rejected, but P2280R4 made it valid

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117849 --- Comment #13 from Patrick Palka --- (In reply to Barry Revzin from comment #12) > I'm not sure this is quite right yet. This is on gcc trunk on compiler > explorer right now, which is g++ > (Compiler-Explorer-Build-gcc-8fbe7d24373556d40886c7c

[Bug c++/118249] Misdiagnosing use of 'this' while doing class member access in constant evaluation

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118249 Patrick Palka changed: What|Removed |Added Ever confirmed|0 |1 Resolution|FIXED

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

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 118249, which changed state. Bug 118249 Summary: Misdiagnosing use of 'this' while doing class member access in constant evaluation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118249 What|Removed

[Bug libstdc++/115046] meta-recursion when apply join_view with as_const_view

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115046 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug libstdc++/112490] infinite meta error in reverse_iterator::iterator>> (LWG 4218)

2025-04-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Patrick Palka changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/119652] [14/15 Regression] constinit empty direct-list-initialization incorrectly rejected since r14-660

2025-04-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119652 --- Comment #2 from Patrick Palka --- FWIW it works if A is initialized via default-init or copy-list-init: constinit A a{};// error constinit A a; // OK constinit A a = {}; // OK

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-04-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Patrick Palka changed: What|Removed |Added Target Milestone|16.0|15.0 Resolution|---

[Bug c++/119652] [14/15 Regression] constinit empty direct-list-initialization incorrectly rejected since r14-660

2025-04-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119652 Patrick Palka changed: What|Removed |Added Known to fail||14.2.0, 15.0 Keywords|

[Bug c++/119652] New: constinit empty direct-list-initialization incorrectly rejected

2025-04-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- struct __shared_count { constexpr __shared_count() {} ~__shared_count(); int _M_pi = 0; }; struct shared_ptr { __shared_count

[Bug c++/117700] spurious error "non-constant condition" when inside a class member

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117700 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 117700, which changed state. Bug 117700 Summary: spurious error "non-constant condition" when inside a class member https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117700 What|Removed |Add

[Bug target/118429] [15 regression] ICE when building poppler-24.11.0 on arm64 (in process_uses_of_deleted_def, at rtl-ssa/changes.cc:276) since r15-6551

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118429 Patrick Palka changed: What|Removed |Added CC||rdiez-2006 at rd10 dot de --- Comment #

[Bug c++/117700] spurious error "non-constant condition" when inside a class member

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117700 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/118249] Misdiagnosing use of 'this' while doing class member access in constant evaluation

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118249 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

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

2025-04-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 118249, which changed state. Bug 118249 Summary: Misdiagnosing use of 'this' while doing class member access in constant evaluation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118249 What|Removed

[Bug c++/117849] constraint variable in requires expression rejected, but P2280R4 made it valid

2025-04-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117849 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/119387] [14 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-04-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 --- Comment #20 from Patrick Palka --- Oof, that's a lot of time spent mangling, I wonder if we have an existing PR for that.

[Bug libstdc++/119620] flat_set::emplace is constrained, and always constructs element on the stack

2025-04-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |ppalka at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2025-04-04 Target Milestone|--- |15.0 --- Comment #4 from Patrick Palka --- Yeah, we can easily make both emplaces

[Bug libstdc++/119620] flat_set::emplace is constrained, and always constructs element on the stack

2025-04-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119620 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/117849] constraint variable in requires expression rejected, but P2280R4 made it valid

2025-04-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117849 --- Comment #8 from Patrick Palka --- (In reply to Tomasz Kamiński from comment #7) > >> I also added a 'size(t) > 0' check and a check for a type that is not >> > >> statically sized, where the concept shouldn't become ill-formed either. > > >

[Bug c++/117849] constraint variable in requires expression rejected, but P2280R4 made it valid

2025-04-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Last reconfirmed||2025-04-02

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-04-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 Patrick Palka changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #1

[Bug c++/117849] constraint variable in requires expression rejected, but P2280R4 made it valid

2025-04-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117849 --- Comment #6 from Patrick Palka --- The error error: template argument 2 is invalid is a parse error that's ultimately caused by PR104255, I think. If we fix this parse error the example should hopefully constexpr evaluate OK with our P228

[Bug c++/119383] [14/15 Regression] Boost 1.85 lib test failures after commit r15-8011

2025-04-01 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119383 Patrick Palka changed: What|Removed |Added Target Milestone|15.0|14.3 Summary|[15 Regression]

[Bug c++/119447] [14/15 Regression] ICE Segmentation fault with incorrect template class declaration syntax and varadic parameter since r14-9374

2025-04-01 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119447 --- Comment #3 from Patrick Palka --- That approach seems reasonable to me FWIW. Alternatively maybe we could fall back to using the dependent DECL_CONTEXT (gen_tmpl) as 'ctx' if tsubst_entering_scope fails.

[Bug libstdc++/119427] std::erase_if(std::flat_map) does not work

2025-04-01 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119427 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-03-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 --- Comment #14 from Patrick Palka --- Created attachment 60941 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60941&action=edit reduced memory-hog testcase I managed to distill a large chunk of the front end memory-hog into the attached

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-03-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Patrick Palka changed: What|Removed |Added See Also|https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=1

[Bug c++/119525] ICE when using template alias parameter deduction on alias for std::variant

2025-03-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119525 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED See Also|https://gcc

[Bug c++/119401] [15 regression] ICE when lambda is used as template argument in member function parameter type since r15-7202

2025-03-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119401 --- Comment #9 from Patrick Palka --- (In reply to Jason Merrill from comment #8) > (In reply to Patrick Palka from comment #6) > > We could detect if there was an intervening redeclaration by comparing the > > source location of the specializat

[Bug c++/119401] [15 regression] ICE when lambda is used as template argument in member function parameter type since r15-7202

2025-03-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119401 --- Comment #6 from Patrick Palka --- We could detect if there was an intervening redeclaration by comparing the source location of the specialization vs that of the prevailing template declaration: diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc inde

[Bug c++/119401] [15 regression] ICE when lambda is used as template argument in member function parameter type since r15-7202

2025-03-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119401 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119515] [13/14/15 Regression] subsumption fails with concept-id that uses a function parameter of an abbreviated function template

2025-03-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119515 Patrick Palka changed: What|Removed |Added Keywords||rejects-valid Target Milestone|---

[Bug c++/119515] New: subsumption fails with concept-id that uses a function parameter of an abbreviated function template

2025-03-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- $ cat testcase.C template concept C = sizeof(T) != 1; void f(auto x) requires C && true; voi

[Bug c++/119499] [15 Regression] g++.dg/modules/gmf-xtreme.C fails on aarch64 and arm

2025-03-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
||ppalka at gcc dot gnu.org

[Bug libstdc++/119486] CTAD for std::pair from function lvalue results in hard error since C++20

2025-03-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119486 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug libstdc++/110853] [c++-concepts] Bad interaction between deduction guide with decay and constraints

2025-03-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Patrick Palka changed: What|Removed |Added CC||de34 at live dot cn --- Comment #2 from

[Bug c++/116681] [12 Regression] ICE: in start, at timevar.cc:491 with -ftime-report -std=c++20

2025-03-25 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116681 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org Target

[Bug c++/104255] parsing function signature fails when it uses a function parameter outside of an unevaluated context

2025-03-23 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104255 --- Comment #10 from Patrick Palka --- *** Bug 119434 has been marked as a duplicate of this bug. ***

[Bug c++/119434] template argument 2 is invalid for CTAD

2025-03-23 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119434 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/119378] [12/13 Regression] Nested template class friend of template class produces "internal compiler error: unexpected expression ‘T’ of kind template_parm_index"

2025-03-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119378 Patrick Palka changed: What|Removed |Added Summary|[12/13/14 Regression] |[12/13 Regression] Nested

[Bug c++/119379] [15 regression] ICE on CTAD for alias template with type constraint

2025-03-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119379 Patrick Palka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/119383] [15 Regression] Boost 1.85 lib build fail after commit r15-8011

2025-03-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
| Status|WAITING |NEW CC||ppalka at gcc dot gnu.org --- Comment #7 from Patrick Palka --- Thanks for the reduction, confirmed

[Bug c++/119379] [15 regression] ICE on CTAD for alias template with type constraint

2025-03-21 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119379 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/119378] [12/13/14 Regression] Nested template class friend of template class produces "internal compiler error: unexpected expression ‘T’ of kind template_parm_index"

2025-03-21 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119378 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols since r14-5979

2025-03-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387 Patrick Palka changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/119387] [14/15 Regression] Regression in performance by a factor of 6 when building with debugging symbols

2025-03-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
|| CC||ppalka at gcc dot gnu.org --- Comment #5 from Patrick Palka --- Created attachment 60835 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60835&action=edit tweaked source file for compatibility Attached is a tweaked sour

[Bug c++/119233] [12/13 Regression] templated member function used as a template argument via pointer to member function from inside a template causes an undefined symbol since r12-6075-g2decd2cabe5a4

2025-03-19 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119233 Patrick Palka changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13 Regression] |t

[Bug libstdc++/112490] infinite meta error in reverse_iterator::iterator>> (LWG 4218)

2025-03-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Patrick Palka changed: What|Removed |Added Target Milestone|14.3|13.4 Summary|infinite meta e

[Bug c++/119305] [14 Regression] ICE in add_to_same_comdat_group with constexpr virtual and constexpr instance

2025-03-17 Thread ppalka at gcc dot gnu.org via Gcc-bugs
||jakub at gcc dot gnu.org, ||ppalka at gcc dot gnu.org --- Comment #2 from Patrick Palka --- Started with r14-10132 and fixed on trunk by r15-521.

[Bug libstdc++/119282] [15 Regression] views::transform producing ranges piped to views::join | ranges::to() fails to compile in constant evaluation.

2025-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119282 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/119282] [15 Regression] views::transform producing ranges piped to views::join | ranges::to() fails to compile in constant evaluation.

2025-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119282 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug libstdc++/119282] [15 Regression] views::transform producing ranges piped to views::join | ranges::to() fails to compile in constant evaluation.

2025-03-14 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119282 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug libstdc++/116440] [14/15 Regression] [C++20] std::tuple> does not compile

2025-03-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116440 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/94061] defaulted member operator <=> defined as deleted if a base has protected member operator <=>

2025-03-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94061 --- Comment #10 from Patrick Palka --- Hmm, I'm not sure CWG 2568 makes this example well-formed? We already do access checks in the context of the synthesized definition, the problem is that the synthesized definition (as per comment #2) looks

[Bug c++/119259] compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119259 --- Comment #11 from Patrick Palka --- I recommend your workaround of removing the 'constexpr' specifier when defaulting a function. A defaulted function is already implicitly constexpr if its definition qualifies, regardless of whether it's ex

[Bug c++/119259] compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119259 --- Comment #9 from Patrick Palka --- Defaulted special member functions seem similarly affected. The following should be valid in C++23 mode after P2448R2: struct A { A(); }; struct B { A a; constexpr B() = default; }; :5:13: error: expl

[Bug c++/119259] compilation error: *constexpr* operator==(const T&) const = default` forces compilation of std::vector's operator== function

2025-03-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
, ||ppalka at gcc dot gnu.org --- Comment #8 from Patrick Palka --- IIUC for defaulted operator<=> that's declared constexpr, GCC deliberately synthesizes its definition eagerly -- as soon as the class is complete rather than upon its first actual use -

[Bug c++/119239] GCC fail to reject odr-use of local constant in template lambda without capture

2025-03-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119239 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/119233] [12/13/14/15 Regression] templated member function used as a template argument via pointer to member function from inside a template causes an undefined symbol since r12-6075-g2decd2c

2025-03-12 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119233 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug libstdc++/119135] Typo in as_const range adaptor

2025-03-10 Thread ppalka at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |ASSIGNED CC||ppalka at gcc dot gnu.org Last reconfirmed||2025-03-10 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/119194] [14/15 Regression] GCC 14.2.0: Incorrect Handling of reference to a local constexpr as a Template Argument

2025-03-10 Thread ppalka at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org, ||ppalka at gcc dot gnu.org See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=110323 --- Comment #3 from Patrick Palka

[Bug c++/119150] Optimization causes function call arguments to consteval functions to not be manifestly constant-evaluated

2025-03-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
||mpolacek at gcc dot gnu.org, ||ppalka at gcc dot gnu.org --- Comment #2 from Patrick Palka --- Reduced: auto consteval consteval_id(auto x) { return x; } int main() { bool b = consteval_id(__builtin_is_constant_evaluated

[Bug c++/119129] ICE: in keep_template_parm, at cp/pt.cc:11115

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119129 Patrick Palka changed: What|Removed |Added Target Milestone|14.3|--- Keywords|ice-on-invalid-c

[Bug libstdc++/115218] The conversion constructor of concat_view::iterator always default-constructs variant

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115218 --- Comment #11 from Patrick Palka --- (In reply to Patrick Palka from comment #10) > (In reply to 康桓瑋 from comment #9) > > (In reply to Patrick Palka from comment #8) > > > Fixed, thanks! > > > > The fix for LWG 4082 is the missing viewable_ra

[Bug libstdc++/115218] The conversion constructor of concat_view::iterator always default-constructs variant

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115218 --- Comment #10 from Patrick Palka --- (In reply to 康桓瑋 from comment #9) > (In reply to Patrick Palka from comment #8) > > Fixed, thanks! > > The fix for LWG 4082 is the missing viewable_range constraint for one pack > case. Where does that con

[Bug libstdc++/115218] The conversion constructor of concat_view::iterator always default-constructs variant

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115218 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug libstdc++/115215] views::concat rejects non-movable references

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
|RESOLVED CC||ppalka at gcc dot gnu.org Target Milestone|--- |15.0 --- Comment #2 from Patrick Palka --- Fixed as well

[Bug c++/100589] function with trailing return type must specify return type 'auto' instead of 'concept auto'

2025-03-05 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100589 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/119038] Internal compiler error calling method with explicit this parameter from generic lambda with implicitly captured this

2025-03-04 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119038 Patrick Palka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/116440] [14/15 Regression] [C++20] std::tuple> does not compile

2025-02-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116440 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119038] Internal compiler error calling method with explicit this parameter from generic lambda with implicitly captured this

2025-02-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119038 Patrick Palka changed: What|Removed |Added Target Milestone|--- |14.3 --- Comment #5 from Patrick Palka

[Bug libstdc++/112490] infinite meta error in reverse_iterator::iterator>>

2025-02-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Patrick Palka changed: What|Removed |Added Target Milestone|--- |14.3 --- Comment #10 from Patrick Palka

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace (overly strict use of deleted function before ADL)

2025-02-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/119038] Internal compiler error calling method with explicit this parameter from generic lambda with implicitly captured this

2025-02-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119038 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug libstdc++/104606] [11 Regression] comparison operator resolution with std::optional and -std=c++20

2025-02-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104606 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace (overly strict use of deleted function before ADL)

2025-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

  1   2   3   4   5   6   7   8   9   10   >