[Bug c++/106213] New: -Werror=deprecated-copy-dtor does not trigger warning and error

2022-07-06 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106213 Bug ID: 106213 Summary: -Werror=deprecated-copy-dtor does not trigger warning and error Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug middle-end/102209] NRVO for function parameters

2022-03-08 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102209 --- Comment #2 from Federico Kircheis --- Isn't the compiler allowed to do copy/move elision even if observable since before c++17?

[Bug c++/102846] New: Misleading suggestion to include cassert

2021-10-19 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102846 Bug ID: 102846 Summary: Misleading suggestion to include cassert Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/102223] no warning when calling member function on dangling reference

2021-09-28 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 --- Comment #8 from Federico Kircheis --- > There is though, on line 10. You are correct, I wonder how I could not see it.

[Bug c++/102482] Winit-list-lifetime false positive for temporaries with std::initializer_list

2021-09-28 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102482 --- Comment #4 from Federico Kircheis --- Note that following equivalent snippet #include struct span { span(std::initializer_list il) noexcept : begin(nullptr), size(il.size()) { begin = il.begin();} const int* begin; std::s

[Bug c++/102482] New: Winit-list-lifetime false positive for temporaries with std::initializer_list

2021-09-25 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102482 Bug ID: 102482 Summary: Winit-list-lifetime false positive for temporaries with std::initializer_list Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity

[Bug c++/102223] no warning when calling member function on dangling reference

2021-09-08 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 --- Comment #6 from Federico Kircheis --- > are you expecting this to go under an existing warning flag, or a new one? Ideally -Wall, but there might already be some flags related to dangling pointers and references. > Your compiler explorer l

[Bug c++/102223] no warning whel calling member function on dangling reference

2021-09-06 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 --- Comment #1 from Federico Kircheis --- Sorry, I copied the wrong snippet, it should have been #include struct s{ s() noexcept; ~s(); int value() const noexcept; }; s foo() noexcept; int bar(){ const auto& v = std::move

[Bug c++/102223] New: no warning whel calling member function on dangling reference

2021-09-06 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102223 Bug ID: 102223 Summary: no warning whel calling member function on dangling reference Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102209] New: NRVO for function parameters

2021-09-05 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102209 Bug ID: 102209 Summary: NRVO for function parameters Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assig

[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

2021-09-04 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487 --- Comment #30 from Federico Kircheis --- It seems to me we are not going to agree as we tend to repeat ourselves, lets see if we go around and around in circles or if it is more like a spiral ;) Your view is more about the compiler, how it i

[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

2021-09-04 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487 --- Comment #28 from Federico Kircheis --- >Edit: sorry, my last comment about what GCC thinks is wrong. Unless it is going to inline the function call, in that case the attributes are as-if ignored (at least the case I've tested with GCC 11.2).

[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

2021-09-04 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487 --- Comment #27 from Federico Kircheis --- Edit: sorry, my last comment about what GCC thinks is wrong. GCC seems to follow the gnu::pure/gnu::const directive to the letter, it does not ignore it when it sees the implementation of the function,

[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

2021-09-04 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487 --- Comment #26 from Federico Kircheis --- As multiple people commented this Ticket, I do not know to who the least message is sent, but I would like to give again my opinion on it, as I would really like to use those attributes in non-toy projec

[Bug c++/101557] the value of '' is not usable in a constant expression

2021-07-21 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101557 --- Comment #4 from Federico Kircheis --- Indeed. I just checked the latest versions. I wonder if there is a common cause that makes this recursive data structure harder to evaluate at compile time.

[Bug c++/101557] the value of '' is not usable in a constant expression

2021-07-21 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101557 --- Comment #2 from Federico Kircheis --- clang does not reject it: https://godbolt.org/z/8Mq1e3o3j

[Bug c++/101557] New: the value of '' is not usable in a constant expression

2021-07-21 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101557 Bug ID: 101557 Summary: the value of '' is not usable in a constant expression Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priori

[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const

2021-01-15 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487 Federico Kircheis changed: What|Removed |Added CC||federico.kircheis at gmail dot com

[Bug c/66918] Disable "inline function declared but never defined" warning

2020-11-04 Thread federico.kircheis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66918 Federico Kircheis changed: What|Removed |Added CC||federico.kircheis at gmail dot com