[Bug c++/77875] C++ core issue 1288

2021-12-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875 Andrew Pinski changed: What|Removed |Added CC||vanyacpp at gmail dot com --- Comment

[Bug c++/77875] C++ core issue 1288

2019-03-28 Thread redi at gcc dot gnu.org
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

[Bug c++/77875] C++ core issue 1288

2019-03-28 Thread mpolacek at gcc dot gnu.org
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 =

[Bug c++/77875] C++ core issue 1288

2019-03-28 Thread leni536 at gmail dot com
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 =

[Bug c++/77875] C++ core issue 1288

2019-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/77875] C++ core issue 1288

2019-03-27 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875 Jonathan Wakely changed: What|Removed |Added CC||leni536 at gmail dot com --- Comment