[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2024-04-09 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Nathaniel Shead changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2024-04-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #17 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:77c0b5b23f91404004a9bf710981f6d615b63f57 commit r14-9881-g77c0b5b23f91404004a9bf710981f6d615b63f57 Author: Nathaniel Shead

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2024-03-06 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Patrick Palka changed: What|Removed |Added Last reconfirmed|2021-03-04 00:00:00 |2024-3-6 --- Comment #16 from Patrick

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

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

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-10-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #14 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:2ceb4d531a303f3e70d8bb218c8759e6c0688f62 commit r13-3235-g2ceb4d531a303f3e70d8bb218c8759e6c0688f62 Author: Patrick Palka Date:

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-17 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #13 from Johel Ernesto Guerrero Peña --- > The workaround of Comment 5 stopped working for my actual use-case some time > ago. The `using` declaration works if I move it earlier in the TU.

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-16 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #12 from Johel Ernesto Guerrero Peña --- The workaround of Comment 5 stopped working for my actual use-case some time ago. Now I do this: ```C++ export constexpr void expects(bool truth) noexcept { if (not truth) std::terminate();

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-16 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #11 from Johel Ernesto Guerrero Peña --- Created attachment 53312 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53312=edit Release object file

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-16 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #10 from Johel Ernesto Guerrero Peña --- Created attachment 53311 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53311=edit Release GCM

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-16 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #9 from Johel Ernesto Guerrero Peña --- Created attachment 53310 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53310=edit Debug object file

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2022-07-16 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #8 from Johel Ernesto Guerrero Peña --- Created attachment 53309 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53309=edit Debug GCM

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-12-20 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #7 from Johel Ernesto Guerrero Peña --- if (v == [] consteval { return std::numeric_limits::max() }()) break; works too. More generally, you can avoid the linker error if you don't require the symbol at link time.

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-11-29 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #6 from Johel Ernesto Guerrero Peña --- A workaround for static member functions: ```C++ template [[nodiscard]] consteval I max() { return std::numeric_limits::max(); } if (v == std::numeric_limits::max()) break; if (v ==

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-11-29 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Johel Ernesto Guerrero Peña changed: What|Removed |Added CC||johelegp at gmail dot com

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-30 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Boris Kolpackov changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-05 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #2 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:1e5cdb9f896fb220b26fd2080406504c4badf5af commit r11-7530-g1e5cdb9f896fb220b26fd2080406504c4badf5af Author: Nathan Sidwell Date:

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-05 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 --- Comment #1 from Nathan Sidwell --- // bug_a.ii template struct Widget { Widget (int) { } bool First() const { return true; } bool Second () const { return true;} }; inline void Frob (const Widget& w) noexcept { w.First (); } //

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-04 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Nathan Sidwell changed: What|Removed |Added Last reconfirmed||2021-03-04 Ever confirmed|0