https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
Nathaniel Shead changed:
What|Removed |Added
Resolution|--- |FIXED
CC|
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
Patrick Palka changed:
What|Removed |Added
CC||ppalka at gcc dot gnu.org
--- Comment
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:
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.
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();
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
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
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
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
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.
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 ==
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
Boris Kolpackov changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
Nathan Sidwell changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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:
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 ();
}
//
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
Nathan Sidwell changed:
What|Removed |Added
Last reconfirmed||2021-03-04
Ever confirmed|0
19 matches
Mail list logo