[Bug c++/112318] Deprecated move ctor does not trigger -Wdeprecated-declarations when creating a std::optional

2023-12-13 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112318 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/91317] [7/8/9/10 Regression] false-positive maybe-uninitialized warning in destructor with placement new

2023-05-22 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91317 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/61754] [C++1y] [[deprecated]] attribute warns annoyingly compared to __attribute__((deprecated))

2023-05-03 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61754 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

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

2023-02-10 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108759 Bug ID: 108759 Summary: "mandatory copy elision" not implemented during constant evaluation redux Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c++/104577] needs copy constructor for class non-type template parameter

2023-02-10 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104577 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/107906] linkage of template not taken into account

2022-11-30 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107906 --- Comment #3 from S. Davis Herring --- Thanks for identifying the true common thread. > That is not a specialization, that is an instantiation. The standard uses specialization for every "version" of a template; some are just "explicit

[Bug c++/107906] New: Function template specialization given weak rather than local symbol

2022-11-28 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107906 Bug ID: 107906 Summary: Function template specialization given weak rather than local symbol Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c++/66671] Failure to create a new family of templates for template alias

2022-11-28 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66671 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/106756] Overbroad friendship for nested classes

2022-08-26 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106756 --- Comment #2 from S. Davis Herring --- (In reply to Jonathan Wakely from comment #1) > "Declaring a class to be a friend implies that private and protected > members > of the class granting friendship can be named in the

[Bug c++/106756] New: Overbroad friendship for nested classes

2022-08-26 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106756 Bug ID: 106756 Summary: Overbroad friendship for nested classes Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/44402] Doesn't allow friend declarations using a typedef for function type

2022-08-26 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44402 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/59256] qualified name in friend function declaration doesn't match previous declaration in inline namespace

2022-08-26 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59256 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/103876] Parameter pack not expanded in lambda within static_assert in a fold-expression of a lambda

2022-08-18 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103876 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/89780] -Wpessimizing-move is too agressive with templates and recommends pessimization

2022-08-11 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89780 --- Comment #8 from S. Davis Herring --- I looked at P2266R3 again; it claims that the conversion function case (in #7) is actually covered by P1825R0. I think that case is questionable, since it still refers to "overload resolution to select

[Bug c++/89780] -Wpessimizing-move is too agressive with templates and recommends pessimization

2022-08-11 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89780 --- Comment #7 from S. Davis Herring --- > In the withMove case, in C++20, we issue: > warning: moving a local object in a return statement prevents copy elision > for > template Dest withMove(); > and: > warning: redundant move in return

[Bug c++/89780] -Wpessimizing-move is too agressive with templates and recommends pessimization

2022-08-04 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89780 --- Comment #5 from S. Davis Herring --- Perhaps I'm misunderstanding something, but your example (as well as compiling the original example with -std=c++20, which produces the same warning but now calls Dest(Dest&&) in the noMove case) means

[Bug c++/89780] -Wpessimizing-move is too agressive with templates and recommends pessimization

2022-08-04 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89780 --- Comment #3 from S. Davis Herring --- Does this need to be language-version-dependent, given https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1825r0.html (in C++20) and

[Bug c++/12228] [DR 244/399] syntax error calling a qualified template dtor

2021-11-15 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12228 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/95849] Universal forwarding constructor inheritance resolution issue

2021-08-28 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95849 S. Davis Herring changed: What|Removed |Added CC||herring at lanl dot gov --- Comment

[Bug c++/90493] const variable template specialization is always local

2021-08-23 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90493 --- Comment #4 from S. Davis Herring --- (In reply to Jonathan Wakely from comment #3) > Reduced to show just the rejects-valid part: > > template extern const int foo = 41; > // this is an error: > // error: explicit template specialization

[Bug c++/97340] New: Spurious rejection of member variable template of reference type

2020-10-08 Thread herring at lanl dot gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97340 Bug ID: 97340 Summary: Spurious rejection of member variable template of reference type Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal