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

allan.chandler at dti dot com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan.chandler at dti dot 
com.au

--- Comment #3 from allan.chandler at dti dot com.au ---
For what it's worth, the following minimal program is enough to demonstrate the
erroneous behaviour:

class Base {
    static constexpr int PRIVATE = 42;
};
struct Derived : public Base {
    template <class T> int bar(T) {
        return PRIVATE;
    }
};
int main() {
    Derived d;
    return d.bar(1);
}

Reply via email to