https://llvm.org/bugs/show_bug.cgi?id=26086
Bug ID: 26086 Summary: Alias template in default template arguments expanded too early Product: clang Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: C++11 Assignee: unassignedclangb...@nondot.org Reporter: rs2...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified This variant of CWG1558's (http://wg21.link/CWG1558) example compiles in clang but not GCC: template<class> using void_t = void; template<class T, class = void_t<typename T::foo>> void f(); int main() { f<int>(); } Presumably the use of 'typename T::foo' in the default template argument should cause substitution failure. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs