c++ static int def in doubly nested template class fails with clang3.8.0

The attached code in 1st attachment fails with error
shown in 2nd attachment. The compiler version is
shown in 3ird attachment.

When !defined(USE_NESTED_USING), it compiles & runs OK,
even though the template arguments should be the same
(because a nested alias of the argument used in the
OK compile was used).

Is this a bug or am I missing something?


nested_template_cls_def.cpp (649 Bytes)

compile_error.txt (726 Bytes)

compiler.txt (308 Bytes)