[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2021-04-22 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

--- Comment #5 from Jonathan Wakely  ---
Ha, apparently I forgot that I'd reported the bug and fixed it myself.

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2021-04-22 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

Patrick Palka  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE
 CC||ppalka at gcc dot gnu.org

--- Comment #4 from Patrick Palka  ---
(In reply to Jonathan Wakely from comment #3)
> Confirmed. Already seems to be fixed on trunk.

Ever since r8-1170.  Looks like this is pretty much a dup of PR80990 then.

*** This bug has been marked as a duplicate of bug 80990 ***

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.4 |---

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2019-09-18 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

Eric Gallager  changed:

   What|Removed |Added

   Target Milestone|--- |7.4

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2018-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||accepts-invalid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-12
  Known to work||8.0
 Ever confirmed|0   |1
  Known to fail||7.2.0

--- Comment #3 from Jonathan Wakely  ---
Confirmed. Already seems to be fixed on trunk.

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2018-01-12 Thread bugzilla.gcc.karo at cupdev dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

--- Comment #2 from Karolin varner  ---
Comment on attachment 43119
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43119
Test case

>template
>struct tstruct {
>  T x;
>  tstruct(const T _) : x{x_} {}
>};
>
>int main() {
>  const tstruct s{2};
>  tstruct  = s;
>  s.x = 2;
>  return 0;
>}

[Bug c++/83818] g++ class template parameter deduction discards const qualifier

2018-01-12 Thread bugzilla.gcc.karo at cupdev dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83818

--- Comment #1 from Karolin varner  ---
Created attachment 43119
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43119=edit
Test case