https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
Andrew Pinski changed:
What|Removed |Added
CC||vanyacpp at gmail dot com
--- Comment #6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
--- Comment #5 from Jonathan Wakely ---
Yes, probably, but it doesn't seem useful for T{i} to do anything except bind a
reference of type T to i. Issue 1521 seems to be a problem with the wording,
such that it doesn't apply to references, but I d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
--- Comment #4 from Marek Polacek ---
Doesn't this depend on the resolution of Core 1521 (still "drafting"), dealing
with T{expr} where T is a reference type? Which is what this PR is about:
void
f ()
{
int i = 42;
using T = int&;
T t = T
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
--- Comment #3 from Lénárd Szolnoki ---
A more worrisome example presumably for this same bug, it's a miscompilation:
template
decltype(auto) as_const(T& t) {
using const_ref = const T&;
return const_ref{t};
}
int main() {
int i =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCON
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
Jonathan Wakely changed:
What|Removed |Added
CC||leni536 at gmail dot com
--- Comment #