https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #6 from CVS Commits ---
The master branch has been updated by Jason Merrill :
https://gcc.gnu.org/g:8fda2c274ac66d60c1dfc1349e9efb4e8c2a3580
commit r10-6416-g8fda2c274ac66d60c1dfc1349e9efb4e8c2a3580
Author: Jason Merrill
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
Jason Merrill changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #5 from Kyrylo Bohdanenko ---
Sorry, the move constructor isn't necessary...
template
struct integral_constant {
constexpr integral_constant(const integral_constant&) noexcept {}
constexpr integral_constant() noexcept {}
};
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #4 from Kyrylo Bohdanenko ---
The problem can also be worked around by manually specifying "the holy trio" of
constructors and providing empty bodies (= default does not work)
This code compiles with GCC 8.3.0 and trunk (20190919):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
--- Comment #2 from Jakub Jelinek ---
Reduced testcase:
template
struct integral_constant
{
static constexpr _Tp value = __v;
typedef _Tp value_type;
typedef integral_constant<_Tp, __v> type;
constexpr operator value_type() const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91953
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,