https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83476

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.8.1
            Summary|Template argument deduction |[8/9/10/11 Regression]
                   |fails with reference        |Template argument deduction
                   |template parameter          |fails with reference
                   |                            |template parameter
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org
      Known to fail|                            |10.3.0, 11.0, 8.4.0, 9.3.0
   Last reconfirmed|                            |2021-04-13
     Ever confirmed|0                           |1
   Target Milestone|---                         |8.5
             Blocks|                            |99885

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed.  C++98 testcase (essentially equivalent to comment #2, but without
brace initialization) which exhibits a regression starting with r0-128511
(4.9.0):

template <int& V> struct A {};
template <int& V> void f(A<V>);
int n;
int main() {
  A<n> a;
  f(a);
}

GCC 4.8 compiles the testcase successfully.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99885
[Bug 99885] CTAD fails for auto const& NTTP

Reply via email to