[Bug c++/71569] [6/7/8 regression] Crash: External definition of template member from template struct

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 1 09:07:00 GMT 2018


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is also an ICE on valid. Fro example, from Jason:

template <class T>
struct A {
  template <class U>
  static const U u;
};

template <class T>
template <class U>
const U* A<T>::u<U*> = nullptr;


More information about the Gcc-bugs mailing list