[Bug c++/118893] New: ICE (internal compiler error) on building a literal object by using an ill-formed static operator of a lambda (coerce_template_parms)

2025-02-15 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118893 Bug ID: 118893 Summary: ICE (internal compiler error) on building a literal object by using an ill-formed static operator of a lambda (coerce_template_parms) Product: gcc

[Bug c++/118722] accepted undefined static integral data member

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722 --- Comment #6 from mauro russo --- sure, I was not saying disagreement, just a new point learned :-) Thanks.

[Bug c++/118722] accepted undefined static integral data member

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722 --- Comment #4 from mauro russo --- > an ODR violation is still an undefined behavior That's interesting, I supposed this was only for the case of multiple/different definitions.

[Bug c++/25220] [g++] (in class) static (const integral) member initialization.

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25220 --- Comment #5 from mauro russo --- found out, through the discussion on PR 118722, that my case falls in the exceptions where there is no odr-use.

[Bug c++/118722] accepted undefined static integral data member

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722 --- Comment #2 from mauro russo --- ok, I see now the example in cppreference about special cases where, despite that static data member value is read, it is usable in constant expressions and an lvalue-to-rvalue conversion is applied to it (s

[Bug c++/118722] New: accepted undefined static integral data member

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118722 Bug ID: 118722 Summary: accepted undefined static integral data member Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/25220] [g++] (in class) static (const integral) member initialization.

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25220 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/43720] undefined reference to static const integral class member

2025-02-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43720 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/55203] No unused warning for variables of non-trivial types

2025-01-29 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/118641] destruction order is wrong with returns and throwing deconstructors

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 --- Comment #9 from mauro russo --- done here: https://developercommunity.visualstudio.com/t/memory-leak-due-to-non-destructed-object/10834177 as I am unable to add in the "See Also" section.

[Bug c++/118641] destruction order is wrong with returns and throwing deconstructors

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 --- Comment #6 from mauro russo --- Yes, 'a' and 'c' destroyed in a wrongly swapped order.

[Bug c++/118641] destruction order is wrong with returns and throwing deconstructors

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 --- Comment #8 from mauro russo --- I see you added the reference to the similar bug I reported to Clang [https://github.com/llvm/llvm-project/issues/124306] but I would say that there is similar to the previously fixed bug PR 33799 for gcc that

[Bug c++/118641] destruction order is wrong with returns and throwing deconstructors

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 --- Comment #7 from mauro russo --- I tried to be clear since the words: <... the code destroys object a before returned object constructed in #1 ...> where having written "object a" instead of "object 'a'" might likely appear less clear. Any

[Bug c++/118641] New: destruction order not respected

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 Bug ID: 118641 Summary: destruction order not respected Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/118641] destruction order not respected

2025-01-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118641 --- Comment #1 from mauro russo --- I am also thankful to Vincenzo Simone, having notified that quiz

[Bug c++/118463] requires-clause considered ill-formed but not leading to clause failure

2025-01-15 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118463 --- Comment #4 from mauro russo --- Agreed. Thank you for the further contribute.

[Bug c++/118398] Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-14 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 --- Comment #10 from mauro russo --- As comment about point (a), I hope to be right in referring the following standard text from [temp.constr.normal]-p(1.4): "The normal form of a concept-id C is the normal form of the constraint-expression of

[Bug c++/118463] requires-clause considered ill-formed but not leading to clause failure

2025-01-14 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118463 --- Comment #2 from mauro russo --- I see your point, despite I consider your modified example a bit different, because in the original example, other compilers still accept f even on the intantiation.. However, I suppose you are implicitly men

[Bug c++/118463] New: requires-clause considered ill-formed but not leading to clause failure

2025-01-13 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118463 Bug ID: 118463 Summary: requires-clause considered ill-formed but not leading to clause failure Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: norm

[Bug c++/96515] [concepts] Segfault on ill-formed pack expansions in requires-expression

2025-01-13 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96515 --- Comment #2 from mauro russo --- Sorry for not having realized you specified "ill-formed" in your title. I was here while I was looking for another bug. Anyway, your ICE is still there in gcc 14.2 .

[Bug c++/96515] [concepts] Segfault on ill-formed pack expansions in requires-expression

2025-01-13 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96515 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/118398] Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-13 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 --- Comment #9 from mauro russo --- ok, I would say that, for point (b), §13.5.2.2 [temp.constr.op] - p2 and p3: "2 A conjunction is a constraint taking two operands. To determine if a conjunction is satisfied, the satisfaction of the first op

[Bug c++/118398] Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-12 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 --- Comment #8 from mauro russo --- I see, it makes sense. However, I hope not to be too tedious to ask explicit references for the rules you stated: a) ignore requirements on parameters not used in the evaluation of a concept. b) ignore erro

[Bug c++/118398] Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-10 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 --- Comment #6 from mauro russo --- ok, I will also check for the confirmation from standard text. What about the fact that for func2, second clause is ignored after that first one fails ? Do you confirm it is fair ? Do you confirm that this is

[Bug c++/118398] Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-10 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 --- Comment #1 from mauro russo --- sorry, let me re-style the main() function with related comments, to adapt this 80-columns views. int main(){ func1(std::set{}); // - gcc behaves as clang about the need to resolve

[Bug c++/118398] New: Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument

2025-01-10 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398 Bug ID: 118398 Summary: Resolving lambda expression decltype prioritized over the option to consider failed required concept using that type as argument Product: gcc

[Bug c++/96821] [concepts] Incorrect evaluation of concept with ill-formed expression

2025-01-10 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96821 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/118365] New: try to define an overloaded function template for a namespace, without having first declared it in that namespace

2025-01-08 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118365 Bug ID: 118365 Summary: try to define an overloaded function template for a namespace, without having first declared it in that namespace Product: gcc Version: 1

[Bug c++/118195] New: accepted template member definition with a different template-head

2024-12-24 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118195 Bug ID: 118195 Summary: accepted template member definition with a different template-head Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/118060] New: ICE (internal compiler error) on requires clause

2024-12-16 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118060 Bug ID: 118060 Summary: ICE (internal compiler error) on requires clause Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c++/117778] New: ICE maybe_add_lambda_conv_op

2024-11-25 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117778 Bug ID: 117778 Summary: ICE maybe_add_lambda_conv_op Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Ass

[Bug c++/117772] New: constrained auto in decl-specifier accepted for function return type despite trailing-return-type

2024-11-25 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117772 Bug ID: 117772 Summary: constrained auto in decl-specifier accepted for function return type despite trailing-return-type Product: gcc Version: 14.2.0 Status: UNCONFIRME

[Bug c++/117156] not applied option “-Wchanges-meaning”

2024-10-15 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117156 --- Comment #4 from mauro russo --- ok, thank you.

[Bug c++/117156] New: not applied option “-Wchanges-meaning”

2024-10-15 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117156 Bug ID: 117156 Summary: not applied option “-Wchanges-meaning” Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/116981] wrongly accepted non-more-specialized partial specialization of class template member for an instantiated enclosing template

2024-10-14 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116981 --- Comment #8 from mauro russo --- sorry, in the initial post I wrongly mentioned 'A3' in the commented code line, in place of 'A'.

[Bug c++/116981] wrongly accepted non-more-specialized partial specialization of class template member for an instantiated enclosing template

2024-10-06 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116981 --- Comment #7 from mauro russo --- ok. Maybe the comment in PR 32071 about this as duplicated may also be removed.

[Bug c++/116981] wrongly accepted non-more-specialized partial specialization of class template member for an instantiated enclosing template

2024-10-06 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116981 --- Comment #5 from mauro russo --- yes, `B` needs to be changed to `B`. Please, may you remove the dup-relation with PR 32071 ?

[Bug c++/116943] wrong(?) indication of specialization after (implicit) instantiation

2024-10-04 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116943 mauro russo changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/116981] New: wrongly accepted non-more-specialized partial specialization of class template member for an instantiated enclosing template

2024-10-04 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116981 Bug ID: 116981 Summary: wrongly accepted non-more-specialized partial specialization of class template member for an instantiated enclosing template Product: gcc

[Bug c++/116943] wrong(?) indication of specialization after (implicit) instantiation

2024-10-03 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116943 --- Comment #3 from mauro russo --- may I suppose that the following text from [temp.inst]: The implicit instantiation of a class template specialization causes - the implicit instantiation of the declarations, but not of the definitions, of th

[Bug c++/116943] wrong(?) indication of specialization after (implicit) instantiation

2024-10-03 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116943 --- Comment #2 from mauro russo --- thank you Andrew Pinski, do you have also any explanation from the standard, why it should be rejected ? That is, where the instantiation comes on ? Or why this does not implicitly contradicts the option to

[Bug c++/116943] New: wrong(?) indication of specialization after (implicit) instantiation

2024-10-02 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116943 Bug ID: 116943 Summary: wrong(?) indication of specialization after (implicit) instantiation Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/111608] Cannot declare partial specialization after full specialization

2024-10-02 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111608 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Comme

[Bug c++/57376] Bogus error due to failure of unqualified namespace lookup

2024-10-01 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57376 mauro russo changed: What|Removed |Added CC||ing.russomauro at gmail dot com --- Commen

[Bug c++/114694] New: dependent-name alias type accepted in elaborated type specifier within a template

2024-04-11 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114694 Bug ID: 114694 Summary: dependent-name alias type accepted in elaborated type specifier within a template Product: gcc Version: 13.2.0 Status: UNCONFIRMED Seve

[Bug c++/114488] internal compiler error: unexpected expression static_cast ...

2024-03-26 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114488 --- Comment #2 from mauro russo --- If something is removed from sample code (e.g., b made bool instead of a shared_ptr, or some const is removed), the problem disappears.

[Bug c++/114488] New: internal compiler error: unexpected expression static_cast ...

2024-03-26 Thread ing.russomauro at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114488 Bug ID: 114488 Summary: internal compiler error: unexpected expression static_cast ... Product: gcc Version: 9.5.0 Status: UNCONFIRMED Severity: normal