https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116379
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=103403
Target Milestone|--- |12.5
Known to fail| |12.4.0, 13.3.0, 14.2.0,
| |15.0
Summary|Type deduction error on |[12/13/14/15 Regression]
|decltype(auto) |Type deduction error on
| |decltype(auto) of
| |parenthesized non-static
| |data member since r12-5778
Last reconfirmed| |2024-08-15
Keywords| |rejects-valid
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Known to work| |11.5.0
CC| |mpolacek at gcc dot gnu.org,
| |ppalka at gcc dot gnu.org
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed, started with r12-5778.
template<typename T>
struct X {
T val;
decltype(auto) value() { return (val); }
};
int main() {
int i = 0;
X<int&&> x{ static_cast<int&&>(i) };
using type = decltype(x.value());
using type = int&;
}