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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |10.5.0
      Known to fail|                            |11.1.0
            Summary|[11/12/13/14 Regression]    |[11/12/13/14 Regression]
                   |using of a static variable  |using of a static variable
                   |inside a template is not    |inside a template is not
                   |found during instantiation  |found for use of a base
                   |since r11-6815              |class template of an inner
                   |                            |class during instantiation
                   |                            |since r11-6815

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced a little further:
```
template<int D> struct blurb 
{ constexpr static int d=D; };

template<int> struct pant{};

template<typename Base>
struct bug : Base
{
    using Base::d;
    struct problem : pant<d> {  };
};

template struct bug< blurb<2> >;
```

Reply via email to