[Bug c++/112288] [11/12/13/14 Regression] ICE - internal compiler error: in instantiate_decl, at cp/pt.cc:26861 since r6-6830-g20a0c6f9bdbd78

2023-11-03 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288 --- Comment #9 from Fabio Alemagna --- (In reply to Patrick Palka from comment #8) > The issue was probably latent before r6-6830. The testcase is kind of > strange, It's the "friend injection" technique. In this case, it's used to create a

[Bug c++/112288] [11/12/13/14 Regression] ICE - internal compiler error: in instantiate_decl, at cp/pt.cc:26861

2023-10-30 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288 --- Comment #7 from Fabio Alemagna --- (In reply to Marek Polacek from comment #6) > (In reply to Andrew Pinski from comment #5) > > (In reply to Fabio Alemagna from comment #4) > > > (In reply to Marek Polacek from comment #2) > > > >

[Bug c++/112288] [11/12/13/14 Regression] ICE - internal compiler error: in instantiate_decl, at cp/pt.cc:26861

2023-10-30 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288 --- Comment #4 from Fabio Alemagna --- (In reply to Marek Polacek from comment #2) > Confirmed. Started with r6-6830-g20a0c6f9bdbd78: > > commit 20a0c6f9bdbd781ed5d413a10a06764a174dc394 > Author: Patrick Palka > Date: Mon Feb 8 23:02:50

[Bug c++/112288] internal compiler error: in instantiate_decl, at cp/pt.cc:26861

2023-10-30 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288 Fabio Alemagna changed: What|Removed |Added Attachment #56472|0 |1 is obsolete|

[Bug c++/112288] New: internal compiler error: in instantiate_decl, at cp/pt.cc:26861

2023-10-30 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288 Bug ID: 112288 Summary: internal compiler error: in instantiate_decl, at cp/pt.cc:26861 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c++/112267] "inline function constexpr used but never defined" warning in SFINAE context

2023-10-29 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112267 --- Comment #4 from Fabio Alemagna --- With a tweak(In reply to Andrew Pinski from comment #3) > (In reply to Fabio Alemagna from comment #1) > > Changing the return type of the function func() from int to auto makes the > > warning disappear.

[Bug c++/112267] "inline function constexpr used but never defined" warning in SFINAE context

2023-10-29 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112267 --- Comment #2 from Fabio Alemagna --- Sorry, "from int to auto" should have been "from bool to auto". You get the point.

[Bug c++/112267] "inline function constexpr used but never defined" warning in SFINAE context

2023-10-29 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112267 --- Comment #1 from Fabio Alemagna --- Changing the return type of the function func() from int to auto makes the warning disappear. Incidentally it causes an error on clang, though, which prompts the question: is this a clang bug, for

[Bug c++/112267] New: "inline function constexpr used but never defined" warning in SFINAE context

2023-10-28 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112267 Bug ID: 112267 Summary: "inline function constexpr used but never defined" warning in SFINAE context Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug objc++/109728] lambda capture with initializer doesn't compile when compiling ObjC++ code.

2023-05-04 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109728 --- Comment #2 from Fabio Alemagna --- Yes, clang handles this case correctly.

[Bug objc++/109728] New: lambda capture with initializer doesn't compile

2023-05-04 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109728 Bug ID: 109728 Summary: lambda capture with initializer doesn't compile Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/108089] False positive for -Wfree-nonheap-object when using std::variant

2022-12-13 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108089 Fabio Alemagna changed: What|Removed |Added Known to work||11.3.0 Known to fail|

[Bug c++/108089] New: False positive for -Wfree-nonheap-object when using std::variant

2022-12-13 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108089 Bug ID: 108089 Summary: False positive for -Wfree-nonheap-object when using std::variant Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/108088] New: False positive for -Wfree-nonheap-object when using std::variant

2022-12-13 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108088 Bug ID: 108088 Summary: False positive for -Wfree-nonheap-object when using std::variant Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/105908] New: out-of-class definition of templated method with decltype in trailing return type fails to compile

2022-06-09 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105908 Bug ID: 105908 Summary: out-of-class definition of templated method with decltype in trailing return type fails to compile Product: gcc Version: 12.0 Status:

[Bug c++/89565] [C++2a] ICE on template instantiating user defined non-type template from template value member

2021-03-22 Thread falemagn at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89565 --- Comment #4 from Fabio Alemagna --- Just encountered this bug myself, with trunk gcc (11.0.1 20210321 (experimental)). See godbolt: https://godbolt.org/z/TxW137Whh