[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2021-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread grzebieluch at me dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 Marcin Grzebieluch changed: What|Removed |Added CC||grzebieluch at me dot com ---

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread gcc at baszerr dot eu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #7 from bartek 'basz' szurgot --- maybe it's more related to a particular set of configuration parameters / features enabled, then the released version?

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #6 from Jonathan Wakely --- There's something strange about the Debian package then. $ cat np.cc struct S { int i; }; template struct T { auto operator->() { return } S s; }; template void problem(T& t) { t->i; } $

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread gcc at baszerr dot eu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #5 from bartek 'basz' szurgot --- Created attachment 41626 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41626=edit gcc 6.3 vs gcc 7.1

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread gcc at baszerr dot eu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #4 from bartek 'basz' szurgot --- on my Debian it works on GCC 7.1.0, but not on GCC 6.3.0 (test script attached): + g++-6 -v Using built-in specs. COLLECT_GCC=g++-6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #3 from Jonathan Wakely --- (In reply to bartek 'basz' szurgot from comment #2) > looks like the problem is gone in GCC-7.1. No, doesn't seem to be.

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-23 Thread gcc at baszerr dot eu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #2 from bartek 'basz' szurgot --- looks like the problem is gone in GCC-7.1.

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 --- Comment #1 from Jonathan Wakely --- Reduced: struct S { int i; }; template struct T { auto operator->() { return } S s; }; template void problem(T& t) { t->i; }

[Bug c++/81182] result of ‘operator->()’ yields non-pointer result

2017-06-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81182 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|