https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Bug 90546 depends on bug 86521, which changed state.
Bug 86521 Summary: [8 Regression] GCC 8 selects incorrect overload of
ref-qualified conversion operator template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86521
What|Removed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
--- Comment #11 from CVS Commits ---
The releases/gcc-8 branch has been updated by Jason Merrill
:
https://gcc.gnu.org/g:c93117eea148326a718ae1e413bc85f4fa257d8f
commit r8-10079-gc93117eea148326a718ae1e413bc85f4fa257d8f
Author: Jason Merrill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Jason Merrill changed:
What|Removed |Added
CC||gufideg at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Jason Merrill changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
--- Comment #8 from CVS Commits ---
The releases/gcc-9 branch has been updated by Jason Merrill
:
https://gcc.gnu.org/g:1c7061c7c352e086b64a60b91e5204f9757bfa97
commit r9-8186-g1c7061c7c352e086b64a60b91e5204f9757bfa97
Author: Jason Merrill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
--- Comment #7 from CVS Commits ---
The master branch has been updated by Jason Merrill :
https://gcc.gnu.org/g:14e320dbc10cc796fd7ca0b6c44e0c9ac0901da9
commit r10-6300-g14e320dbc10cc796fd7ca0b6c44e0c9ac0901da9
Author: Jason Merrill
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
--- Comment #6 from Jason Merrill ---
This changed from the fix for PR 86521.
As you say, deduction is first done with P = T&&, A = const Foo&, and deduces
'const Foo' for T. This produces operator const Foo&&. But according to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Jason Merrill changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Jakub Jelinek changed:
What|Removed |Added
Target Milestone|9.2 |9.3
--- Comment #5 from Jakub Jelinek
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
--- Comment #4 from Nick Krempel ---
Here's one way to turn it into a test case which fails to compile:
struct Foo {};
void test(const Foo&) {}
Foo f;
struct Bar {
template operator T&&() = delete;
};
template<> Bar::operator const Foo&&() {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90546
Richard Biener changed:
What|Removed |Added
Keywords||wrong-code
12 matches
Mail list logo