https://bugs.llvm.org/show_bug.cgi?id=41062
Nicolas Lesser <blitzrak...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Nicolas Lesser <blitzrak...@gmail.com> ---
This is a gcc error, and gcc 8 seems too have fixed the bug.
template <typename T>
template <bool Add>
using Fun = typename Fun_<Add>::template type<T>;
template <typename T>
using Res_ = Fun<false>;
Both of those are not valid C++. Here's what you want to write instead:
template <typename T, bool Add>
using Fun = typename Fun_<Add>::template type<T>;
template <typename T>
using Res_ = Fun<T, false>;
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs